78% comprehensive-appearance-admin

Code Review | Comprehensive Appearance Admin

WordPress plugin Comprehensive Appearance Admin scored78%from 54 tests.

About plugin

  • Plugin page: comprehensive-app...
  • Plugin version: 0.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2015
  • Latest release: Sep 26, 2015
  • Number of updates: 10
  • Update frequency: every 10.5 days
  • Top authors: santeven (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,189 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.39ms] Passed 4 tests

This is a short check of server-side resources used by Comprehensive Appearance Admin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.83 ▼5.29
Dashboard /wp-admin3.33 ▼0.0247.63 ▼18.07
Posts /wp-admin/edit.php3.38 ▲0.0248.84 ▼9.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.18 ▼12.80
Media Library /wp-admin/upload.php3.25 ▲0.0239.94 ▲1.00

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Comprehensive Appearance Admin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.31 ▼1.274.93 ▲3.2143.81 ▲3.09
Dashboard /wp-admin2,222 ▲314.86 ▼0.02104.90 ▼6.3944.84 ▲1.44
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0640.89 ▲0.0536.76 ▼3.90
Add New Post /wp-admin/post-new.php1,545 ▲1723.24 ▲5.04667.97 ▲22.9352.65 ▼5.60
Media Library /wp-admin/upload.php1,401 ▲164.17 ▼0.0298.62 ▼7.1844.68 ▼0.27
Customize Menus /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&autofocus%5Bpanel%5D=nav_menus7,55222.03553.78131.33
Customize Themes /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&autofocus%5Bsection%5D=themes6,55219.61421.5993.79
Customize Widgets /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&autofocus%5Bpanel%5D=widgets7,55722.28434.2497.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/comprehensive-appearance-admin/comprehensive-appearance-admin.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&autofocus%5Bpanel%5D=nav_menus
    • > Security (warning) in unknown
    /?customize_changeset_uuid=8a8dcb7a-aefe-463a-83b7-77f60de4a20a&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&autofocus%5Bsection%5D=themes
    • > Security (warning) in unknown
    /?customize_changeset_uuid=c82925cb-7105-4d5a-94ab-cf26d4fa7171&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php&autofocus%5Bpanel%5D=widgets
    • > Security (warning) in unknown
    /?customize_changeset_uuid=43863b1a-d555-4355-90ba-e56a29b7532e&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: A description for screenshot #2 is missing in comprehensive-appearance-admin/assets to your readme.txt
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === comprehensive-appearance-admin === )
You can take inspiration from this readme.txt

comprehensive-appearance-admin/comprehensive-appearance-admin.php Passed 13 tests

The main PHP script in "Comprehensive Appearance Admin" version 0.1.4 is automatically included on every request by WordPress
94 characters long description:
Display a better, comprehensive Appearance Menu in the Dashboard and in the front-end Toolbar.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected51 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1211951

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions3
▷ Named functions3100.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
PNG images were not found in this plugin