74% blogg100-badge

Code Review | #blogg100 Badge

WordPress plugin #blogg100 Badge scored74%from 54 tests.

About plugin

  • Plugin page: blogg100-badge
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2013
  • Latest release: Feb 6, 2013
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: erfalk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /883 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.91MB] [CPU: ▼49.63ms] Passed 4 tests

Analyzing server-side resources used by #blogg100 Badge
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.46 ▼37.43
Dashboard /wp-admin2.10 ▼1.206.00 ▼42.55
Posts /wp-admin/edit.php2.10 ▼1.266.40 ▼38.98
Add New Post /wp-admin/post-new.php2.10 ▼3.795.79 ▼79.57
Media Library /wp-admin/upload.php2.10 ▼1.136.30 ▼29.18

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
b100efb_yOffset
widget_recent-posts
widget_recent-comments
b100efb_style
b100efb_xOffset

Browser metrics Passed 4 tests

This is an overview of browser requirements for #blogg100 Badge
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲20314.11 ▼0.278.43 ▲6.2542.27 ▼0.46
Dashboard /wp-admin2,215 ▲275.88 ▲1.03108.54 ▼4.7036.65 ▼4.71
Posts /wp-admin/edit.php2,103 ▲142.05 ▲0.0342.02 ▲4.5037.16 ▲3.29
Add New Post /wp-admin/post-new.php1,528 ▼523.28 ▼0.02589.30 ▼112.6256.02 ▲1.87
Media Library /wp-admin/upload.php1,397 ▲64.19 ▼0.0298.40 ▼6.1242.30 ▼4.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/blogg100-badge/b100efb_settings_page.php:4
    • > PHP Warning
      Use of undefined constant B100EFB_PLUGIN_NAME - assumed 'B100EFB_PLUGIN_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/blogg100-badge/b100efb_settings_page.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blogg100-badge/blogg100-badge.php:35
    • > PHP Warning
      Use of undefined constant B100EFB_CURRENT_VERSION - assumed 'B100EFB_CURRENT_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/blogg100-badge/b100efb_settings_page.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: blogg100 badge

blogg100-badge/blogg100-badge.php Passed 13 tests

Analyzing the main PHP file in "#blogg100 Badge" version 0.1.1
86 characters long description:
Lägger till en badge med ordningsnummer för alla dina inlägg taggade med #blogg100.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin261 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25540261

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin