94% admin-toolchain

Code Review | Admin Toolchain

WordPress plugin Admin Toolchain scored 94% from 54 tests.

About plugin

  • Plugin page: admin-toolchain
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • 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 / 110 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Admin Toolchain
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0255.27 ▲3.90
Dashboard /wp-admin3.43 ▲0.0333.21 ▲0.17
Posts /wp-admin/edit.php3.66 ▲0.0237.13 ▲0.46
Add New Post /wp-admin/post-new.php6.89 ▼0.08109.08 ▼1,132.91
Media Library /wp-admin/upload.php3.31 ▲0.0223.66 ▲0.79
Admin Toolchain /wp-admin/options-general.php?page=admin-toolchain3.2822.27

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Admin Toolchain: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲2015.91 ▲0.305.55 ▼0.513.09 ▲1.14
Dashboard /wp-admin2,897 ▲366.01 ▼0.16117.82 ▼17.44153.61 ▼12.08
Posts /wp-admin/edit.php2,696 ▲83.23 ▼0.0062.77 ▼2.60136.68 ▼5.55
Add New Post /wp-admin/post-new.php1,693 ▲3218.31 ▲2.23413.39 ▲15.04161.69 ▲8.70
Media Library /wp-admin/upload.php1,703 ▲55.48 ▼0.06145.04 ▼2.35188.35 ▼6.49
Admin Toolchain /wp-admin/options-general.php?page=admin-toolchain1,0182.4152.40121.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 5× 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/admin-toolchain/tools/wpat_show_wp_blocks_menu_item.php:10
    • > 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: 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 submit_button() in wp-content/plugins/admin-toolchain/tpl/options_page.php:11
    • > 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
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: admin, tool, blocks

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

The entry point to "Admin Toolchain" version 1.0.0 is a PHP file that has certain tags in its header comment area
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
There were no executable files found in this plugin84 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4152174
Markdown13010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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
There were not PNG files found in your plugin