10% label-plugins

Code Review | Label Plugins

WordPress plugin Label Plugins scored 10% from 54 tests.

About plugin

  • Plugin page: label-plugins
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7
  • WordPress version: 6.3.1
  • First release: May 21, 2013
  • Latest release: Jan 28, 2021
  • Number of updates: 16
  • Update frequency: every 175.6 days
  • Top authors: theode (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,920 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/label-plugins/lp_admin_page.php+23
    Use of undefined constant label1 - assumed 'label1' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.39ms] Passed 4 tests

Server-side resources used by Label Plugins
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.59 ▼1.79
Dashboard /wp-admin3.34 ▲0.0444.57 ▼6.22
Posts /wp-admin/edit.php3.39 ▲0.0447.92 ▲1.66
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.75 ▼1.70
Media Library /wp-admin/upload.php3.26 ▲0.0434.48 ▲0.14
Plugin-Tags /wp-admin/options-general.php?page=label-plugins3.2029.63

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
plugin_labels
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Label Plugins: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.27 ▼1.111.78 ▼0.3937.25 ▼10.52
Dashboard /wp-admin2,210 ▲365.86 ▲0.01108.13 ▲4.6040.37 ▼1.44
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0338.80 ▲2.9336.48 ▲0.39
Add New Post /wp-admin/post-new.php1,522 ▼2023.03 ▲4.60668.00 ▲22.2051.45 ▲2.55
Media Library /wp-admin/upload.php1,392 ▲74.27 ▲0.0495.42 ▼9.0341.55 ▼4.31
Plugin-Tags /wp-admin/options-general.php?page=label-plugins8112.0324.3428.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • plugin_labels
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=label-plugins
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=label-plugins
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/label-plugins/lp_admin_page.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/label-plugins/lp_admin_page.php:10

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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: category, development, categories, label, labeling

label-plugins/label-plugins.php Passed 13 tests

The entry point to "Label Plugins" version 0.5 is a PHP file that has certain tags in its header comment area
79 characters long description:
Did you ever struggle with multiple plugins, now you have chance to label them.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected209 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22628209

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.34
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin