84% easy-wp-admin-customizer

Code Review | Easy WP Admin Customizer

WordPress plugin Easy WP Admin Customizer scored84%from 54 tests.

About plugin

  • Plugin page: easy-wp-admin-cus...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 6, 2014
  • Latest release: Nov 6, 2014
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: ViniciusLourenco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.33ms] Passed 4 tests

A check of server-side resources used by Easy WP Admin Customizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.36 ▲0.90
Dashboard /wp-admin3.36 ▲0.0648.86 ▲2.03
Posts /wp-admin/edit.php3.47 ▲0.1247.65 ▼1.00
Add New Post /wp-admin/post-new.php5.94 ▲0.0691.71 ▼3.24
Media Library /wp-admin/upload.php3.29 ▲0.0639.54 ▲6.47
Easy WP Admin Customizer /wp-admin/options-general.php?page=my_admin_page3.2534.36

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Easy WP Admin Customizer: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲5213.20 ▼1.181.70 ▼0.1343.95 ▼0.19
Dashboard /wp-admin2,204 ▲165.85 ▼0.0598.79 ▼20.8336.39 ▼6.43
Posts /wp-admin/edit.php2,087 ▼21.98 ▲0.0135.72 ▲0.3829.32 ▼4.22
Add New Post /wp-admin/post-new.php1,530 ▲1623.41 ▲5.79643.62 ▲2.1255.31 ▲11.54
Media Library /wp-admin/upload.php1,380 ▼114.15 ▼0.04103.37 ▼5.7542.63 ▼4.57
Easy WP Admin Customizer /wp-admin/options-general.php?page=my_admin_page8771.9635.8239.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-wp-admin-customizer/functions-plugin.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/easy-wp-admin-customizer/image-scripts.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-wp-admin-customizer/register-fields.php:224
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-wp-admin-customizer/register-fields.php:224

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: admin, options, custom widget, customizer, cleaning dashboard

easy-wp-admin-customizer/easy-wp-admin-customizer.php 85% from 13 tests

The main PHP script in "Easy WP Admin Customizer" version 0.1.1 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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 detected286 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP57918253
JavaScript171323
Markdown17010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin