10% admin10x

Code Review | Wordpress Admin10X

WordPress plugin Wordpress Admin10X scored10%from 54 tests.

About plugin

  • Plugin page: admin10x
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 8, 2017
  • Latest release: Jan 25, 2019
  • Number of updates: 9
  • Update frequency: every 79.6 days
  • Top authors: brandonliles (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /21,735 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5737
    Function WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability instead.

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.72ms] Passed 4 tests

Analyzing server-side resources used by Wordpress Admin10X
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.30 ▼0.01
Dashboard /wp-admin3.33 ▲0.0242.53 ▼6.31
Posts /wp-admin/edit.php3.38 ▲0.0248.61 ▲2.11
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.50 ▼10.68
Media Library /wp-admin/upload.php3.25 ▲0.0236.96 ▲4.31

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: 1 new table, 6 new options
New tables
wp_author_users
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Wordpress Admin10X
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.53 ▼0.864.49 ▲2.5038.26 ▼5.11
Dashboard /wp-admin2,206 ▲184.85 ▼0.97110.70 ▲8.1942.08 ▲2.21
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0037.80 ▲2.3130.87 ▼3.77
Add New Post /wp-admin/post-new.php1,392 ▼14518.32 ▼5.09644.76 ▼39.8552.57 ▼1.35
Media Library /wp-admin/upload.php1,388 ▲34.23 ▼0.0196.89 ▼3.8341.19 ▼2.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: admin, performance

admin10x/admin10x.php Passed 13 tests

Analyzing the main PHP file in "Wordpress Admin10X" version 1.0.3
98 characters long description:
Admin10X improves the performance of some admin features when your site has many registered users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin100 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12718100

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin