83% adminimal

Code Review | Adminimal

WordPress plugin Adminimal scored 83% 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: 6.3.1
  • 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 / 1,021 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
This plugin's installer ran successfully

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

Server-side resources used by Adminimal
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.23 ▼4.17
Dashboard /wp-admin3.32 ▲0.0145.19 ▼1.80
Posts /wp-admin/edit.php3.37 ▲0.0148.44 ▲0.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.02 ▼13.74
Media Library /wp-admin/upload.php3.24 ▲0.0140.50 ▲2.74

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Adminimal: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲20513.60 ▼1.078.83 ▲6.7350.84 ▲6.45
Dashboard /wp-admin2,246 ▲675.82 ▼0.2095.67 ▼8.8983.60 ▲37.82
Posts /wp-admin/edit.php2,126 ▲371.99 ▼0.0139.79 ▼3.4635.93 ▼1.96
Add New Post /wp-admin/post-new.php1,703 ▲16122.23 ▲3.96750.38 ▲91.8855.89 ▲0.91
Media Library /wp-admin/upload.php1,419 ▲314.18 ▼0.02102.12 ▼12.0671.44 ▲21.78

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

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
Good news, no errors were detected

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
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > 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/inc/settings.php:13
    • > 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/index.php:19
    • > 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 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in adminimal/assets to your readme.txt
Please take inspiration from this readme.txt

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: It is recommended to name the main PHP file as the plugin slug ("adminimal.php" instead of "index.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin493 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PO File33941168
PHP65049151
CSS1290132
Markdown16027
SVG1019
JavaScript1036

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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
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%
Functions12
▷ Named functions1083.33%
▷ Anonymous functions216.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin