90% simple-custom-admin

Code Review | Simple Custom Admin

WordPress plugin Simple Custom Admin scored90%from 54 tests.

About plugin

  • Plugin page: simple-custom-admin
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Jan 5, 2017
  • Latest release: Jan 26, 2017
  • Number of updates: 6
  • Update frequency: every 3.2 days
  • Top authors: carl-alberto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /976 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▲4.32ms] Passed 4 tests

Server-side resources used by Simple Custom Admin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2445.66 ▲5.74
Dashboard /wp-admin3.53 ▲0.2250.87 ▲2.71
Posts /wp-admin/edit.php3.64 ▲0.2850.96 ▼0.45
Add New Post /wp-admin/post-new.php6.13 ▲0.24109.51 ▲11.98
Media Library /wp-admin/upload.php3.45 ▲0.2243.68 ▲9.27
Custom Admin Settings /wp-admin/options-general.php?page=simple_custom_admin_settings3.4546.72

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
csa1_user_role_name
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
simple_custom_admin_version
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Custom Admin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7314.45 ▼0.301.71 ▼0.1243.92 ▲1.40
Dashboard /wp-admin2,214 ▲295.85 ▲0.9596.33 ▼5.2339.87 ▼3.02
Posts /wp-admin/edit.php2,097 ▲112.02 ▼0.0134.19 ▼2.6738.45 ▲6.40
Add New Post /wp-admin/post-new.php1,521 ▼1223.25 ▼0.02600.35 ▼73.6966.08 ▲14.82
Media Library /wp-admin/upload.php1,396 ▲54.24 ▲0.0497.38 ▼3.9741.01 ▼4.37
Custom Admin Settings /wp-admin/options-general.php?page=simple_custom_admin_settings1,0743.2050.5826.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • simple_custom_admin_version
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • csa1_user_role_name
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: dashboard, template, wordpress, admin, plugin...

simple-custom-admin/simple-custom-admin.php 92% from 13 tests

The principal PHP file in "Simple Custom Admin" v. 1.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.9" instead of "4.0")

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
There were no executable files found in this plugin1,075 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP7194680986
JavaScript416654
Markdown111035

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity30.75
▷ Minimum class complexity10.00
▷ Maximum class complexity61.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods64
▷ Static methods23.12%
▷ Public methods6296.88%
▷ Protected methods00.00%
▷ Private methods23.12%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected