93% adminimal

Code Review | Adminimal

WordPress plugin Adminimal scored 93% from 54 tests.

About plugin

  • Plugin page: adminimal
  • Plugin version: 0.7.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.2
  • WordPress version: 5.9.2
  • First release: Mar 7, 2019
  • Latest release: May 10, 2019
  • Number of updates: 34
  • Update frequency: every 1.9 days
  • Top authors: alectro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 768 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Adminimal
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0454.91 ▲7.62
Dashboard /wp-admin3.43 ▲0.0232.78 ▼1.56
Posts /wp-admin/edit.php3.65 ▲0.0138.30 ▲0.44
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.17 ▼1,176.44
Media Library /wp-admin/upload.php3.31 ▲0.0129.09 ▲3.60

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Adminimal
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,973 ▲21916.16 ▲0.9010.28 ▲4.2833.34 ▲30.60
Dashboard /wp-admin2,929 ▲716.18 ▲0.11117.44 ▼20.95166.08 ▲0.88
Posts /wp-admin/edit.php2,730 ▲363.13 ▼0.1264.00 ▼0.51138.08 ▼5.96
Add New Post /wp-admin/post-new.php1,990 ▲30121.31 ▲0.16445.34 ▲4.56161.81 ▲4.81
Media Library /wp-admin/upload.php1,739 ▲415.64 ▲0.12139.26 ▼2.94211.62 ▲26.38

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/adminimal/inc/adminimal.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adminimal/inc/style.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adminimal/index.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adminimal/inc/settings.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/adminimal/pages/adminimal-settings.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in adminimal/assets to your readme.txt
The official readme.txt is a good inspiration

adminimal/index.php 85% from 13 tests

Analyzing the main PHP file in "Adminimal" version 0.7.1
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("adminimal.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)

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 plugin493 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PO File33941168

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1083.33%
▷ Anonymous functions216.67%
▷ 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