10% checks-for-administrators

Code Review | Checks for Administrators

WordPress plugin Checks for Administrators scored10%from 54 tests.

About plugin

  • Plugin page: checks-for-admini...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 15, 2013
  • Latest release: Oct 16, 2013
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: Slashhh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /985 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/checks-for-administrators/checks-for-administrators.php+162
    syntax error, unexpected 'else' (T_ELSE), expecting end of file

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

A check of server-side resources used by Checks for Administrators
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.92 ▼6.23
Dashboard /wp-admin3.31 ▼0.0445.37 ▼15.48
Posts /wp-admin/edit.php3.36 ▲0.0043.39 ▼0.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.99 ▲2.79
Media Library /wp-admin/upload.php3.23 ▲0.0034.56 ▼1.64

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Checks for Administrators
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.23 ▼0.041.60 ▼0.2341.39 ▼5.27
Dashboard /wp-admin2,198 ▲215.63 ▼0.0294.65 ▼4.0642.56 ▼2.90
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0541.60 ▲2.0737.76 ▼1.75
Add New Post /wp-admin/post-new.php1,531 ▲523.25 ▲0.08590.44 ▼60.4570.52 ▲8.31
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0899.60 ▲1.4941.81 ▼1.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/checks-for-administrators/inc/checks.php:7
    • > PHP Parse error
      syntax error, unexpected 'else' (T_ELSE), expecting end of file in wp-content/plugins/checks-for-administrators/checks-for-administrators.php on line 162

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (A checks inside a table, as seen to your users), #2 (Checks for Administrators viewed from the administation section)
Please take inspiration from this readme.txt

checks-for-administrators/checks-for-administrators.php Passed 13 tests

The main PHP file in "Checks for Administrators" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
131 characters long description:
Checks for Administrators is an open source solution built for Wordpress to display several check lists puts for the administrator.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin344 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24043248
PO File1439396

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
10 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/checks/3CP_uncheck.png1.62KB0.71KB▼ 56.13%
screenshot-1.png53.83KB30.56KB▼ 43.23%
img/checks/3CP_check.png1.65KB0.60KB▼ 63.77%
img/checks/RCP_uncheck.png2.11KB1.23KB▼ 41.59%
img/checks/BCP_check.png3.63KB1.62KB▼ 55.33%