84% admin-setting

Code Review | Admin Setting

WordPress plugin Admin Setting scored 84% from 54 tests.

About plugin

  • Plugin page: admin-setting
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.3
  • WordPress version: 5.9.2
  • First release: Jan 19, 2020
  • Latest release: Jan 19, 2020
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: nenwebteam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 312 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼289.81ms] Passed 4 tests

Analyzing server-side resources used by Admin Setting
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0255.31 ▲4.72
Dashboard /wp-admin3.44 ▲0.0335.78 ▲2.47
Posts /wp-admin/edit.php3.66 ▲0.0238.10 ▼4.70
Add New Post /wp-admin/post-new.php6.91 ▼0.0698.46 ▼1,154.58
Media Library /wp-admin/upload.php3.31 ▲0.0124.47 ▼2.41

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Admin Setting
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲3415.94 ▲0.206.18 ▲0.282.30 ▼0.15
Dashboard /wp-admin2,917 ▲596.22 ▲0.01118.07 ▼18.56157.69 ▼5.45
Posts /wp-admin/edit.php2,716 ▲283.26 ▲0.0265.56 ▲1.03143.38 ▲3.17
Add New Post /wp-admin/post-new.php1,678 ▲1718.51 ▲2.43403.62 ▼12.88160.61 ▲8.11
Media Library /wp-admin/upload.php1,720 ▲255.54 ▲0.02136.12 ▼3.47188.87 ▲0.30

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 1 option
    • list_menu

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-setting/index.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Stable tag: No string
The official readme.txt is a good inspiration

admin-setting/index.php 92% from 13 tests

This is the main PHP file of "Admin Setting" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("admin-setting.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin254 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ 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 were not PNG files found in your plugin