94% admin-pro

Code Review | Admin Pro

WordPress plugin Admin Pro scored 94% 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: 5.9.2
  • 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 / 675 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Admin Pro
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0158.55 ▲6.70
Dashboard /wp-admin3.43 ▲0.0233.79 ▼0.52
Posts /wp-admin/edit.php3.66 ▲0.0237.13 ▼2.38
Add New Post /wp-admin/post-new.php6.89 ▼0.0889.28 ▼1,248.08
Media Library /wp-admin/upload.php3.31 ▲0.0124.01 ▲0.47

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Admin Pro
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3116.47 ▲1.136.67 ▲0.932.40 ▼0.07
Dashboard /wp-admin2,911 ▲536.19 ▲0.06132.95 ▼1.95160.93 ▼7.06
Posts /wp-admin/edit.php2,713 ▲253.40 ▲0.1568.46 ▲3.05137.40 ▼4.58
Add New Post /wp-admin/post-new.php1,679 ▼1716.14 ▼6.05400.30 ▼83.93156.26 ▼0.72
Media Library /wp-admin/upload.php1,720 ▲225.58 ▲0.14142.63 ▲3.15186.04 ▲0.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Requires php: Invalid version format
Please take inspiration from this readme.txt

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

The main PHP file in "Admin Pro" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
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 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,070 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21098835
CSS24618220
PHP1201215

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin