84% admin-pro

Code Review | Admin Pro

WordPress plugin Admin Pro scored 84% from 54 tests.

About plugin

  • Plugin page: admin-pro
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9.4
  • WordPress version: 6.3.1
  • First release: Oct 25, 2018
  • Latest release: Oct 25, 2018
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: ideaquotient (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 895 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by Admin Pro
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.76 ▲6.55
Dashboard /wp-admin3.32 ▲0.0143.51 ▼3.88
Posts /wp-admin/edit.php3.37 ▲0.0144.99 ▲0.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.64 ▲5.82
Media Library /wp-admin/upload.php3.24 ▲0.0133.09 ▲1.84

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Admin Pro
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.20 ▼1.105.67 ▲4.1140.22 ▲1.71
Dashboard /wp-admin2,227 ▲394.95 ▲0.07119.26 ▲1.8741.99 ▼4.82
Posts /wp-admin/edit.php2,125 ▲332.24 ▲0.2445.10 ▲3.6335.67 ▲0.72
Add New Post /wp-admin/post-new.php1,531 ▲1723.58 ▲5.98661.00 ▼6.3431.12 ▼22.60
Media Library /wp-admin/upload.php1,409 ▲214.39 ▲0.20107.08 ▲8.3846.44 ▲4.03

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/admin-pro/admin-pro.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Requires php: Invalid plugin version format
The official readme.txt might help

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

"Admin Pro" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
72 characters long description:
Admin Pro is probably the most advance admin UI available for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,070 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21098835
CSS24618220
PHP1201215

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
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
No PNG images were found in this plugin