84% admin-toolchain

Code Review | Admin Toolchain

WordPress plugin Admin Toolchain scored 84% from 54 tests.

About plugin

  • Plugin page: admin-toolchain
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 4, 2021
  • Latest release: Oct 4, 2021
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: skaramicke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 366 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
Installer ran successfully

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

A check of server-side resources used by Admin Toolchain
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.08 ▼2.67
Dashboard /wp-admin3.31 ▲0.0146.29 ▼2.51
Posts /wp-admin/edit.php3.36 ▲0.0146.97 ▲3.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.14 ▼13.93
Media Library /wp-admin/upload.php3.24 ▲0.0135.28 ▼3.37
Admin Toolchain /wp-admin/options-general.php?page=admin-toolchain3.2329.62

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Admin Toolchain: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.63 ▼0.741.71 ▼0.0345.85 ▲1.22
Dashboard /wp-admin2,201 ▲135.83 ▲0.90102.23 ▼6.6237.87 ▼3.74
Posts /wp-admin/edit.php2,090 ▲42.00 ▼0.0535.30 ▲1.9730.48 ▼1.39
Add New Post /wp-admin/post-new.php1,536 ▲2223.10 ▲5.59647.83 ▼26.8354.10 ▼6.17
Media Library /wp-admin/upload.php1,389 ▲14.23 ▲0.0398.95 ▼6.4443.72 ▼1.55
Admin Toolchain /wp-admin/options-general.php?page=admin-toolchain7882.0621.8326.50

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • 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
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
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: wpat_tool_instances in wp-content/plugins/admin-toolchain/tpl/options_page.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/admin-toolchain/tpl/options_page.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WPAT_Tool' not found in wp-content/plugins/admin-toolchain/tools/wpat_show_wp_blocks_menu_item.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-toolchain/tools/wpat_show_wp_blocks_menu_item.php:10
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/admin-toolchain/tpl/options_page.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
3 plugin tags: tool, admin, blocks

admin-toolchain/admin-toolchain.php Passed 13 tests

The main file in "Admin Toolchain" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
76 characters long description:
A small collection of tools to adapt WordPress administration to your liking

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected84 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4152174
Markdown13010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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