84% plugins-manager

Code Review | Plugins Page Customize

WordPress plugin Plugins Page Customize scored84%from 54 tests.

About plugin

  • Plugin page: plugins-manager
  • Plugin version: 1.4.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2019
  • Latest release: Nov 17, 2022
  • Number of updates: 30
  • Update frequency: every 36.5 days
  • Top authors: webtemyk (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /1,493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼3.04ms] Passed 4 tests

This is a short check of server-side resources used by Plugins Page Customize
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.51 ▼3.41
Dashboard /wp-admin3.49 ▲0.1853.95 ▲3.38
Posts /wp-admin/edit.php3.60 ▲0.2549.19 ▼1.62
Add New Post /wp-admin/post-new.php6.07 ▲0.1887.94 ▼10.49
Media Library /wp-admin/upload.php3.41 ▲0.1844.13 ▲7.35
Plugins Page Customizer /wp-admin/options-general.php?page=WTBP_settings3.3932.79

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Plugins Page Customize: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.23 ▲0.091.95 ▲0.3041.44 ▲1.61
Dashboard /wp-admin2,202 ▲255.59 ▲0.06104.30 ▲11.7941.72 ▲0.05
Posts /wp-admin/edit.php2,107 ▲42.03 ▲0.0639.86 ▼8.8336.58 ▼0.04
Add New Post /wp-admin/post-new.php1,536 ▲1023.16 ▼0.02665.86 ▼0.3960.36 ▲11.93
Media Library /wp-admin/upload.php1,404 ▲14.23 ▲0.06103.24 ▲2.7444.38 ▲0.71
Plugins Page Customizer /wp-admin/options-general.php?page=WTBP_settings8612.0223.4929.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WTBP\\PageBaseSettings' not found in wp-content/plugins/plugins-manager/admin/pages/class.page-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WTBP\\Plugin_Base' not found in wp-content/plugins/plugins-manager/includes/class.plugin.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WTBP\\PageBase' not found in wp-content/plugins/plugins-manager/admin/class.page-base-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/plugins-manager/templates/admin/settings-page.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: plugins, plugins page, customize, wp plugins, git

plugins-manager/plugins-manager.php 92% from 13 tests

"Plugins Page Customize" version 1.4.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected770 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10161334559
CSS1184104
PO File1242667
JavaScript24240

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.33
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes350.00%
▷ Concrete classes350.00%
▷ Final classes00.00%
Methods50
▷ Static methods12.00%
▷ Public methods4692.00%
▷ Protected methods36.00%
▷ Private methods12.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants8
▷ Global constants8100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/git.png0.77KB0.71KB▼ 7.47%