89% smntcs-admin-maintenance

Code Review | SMNTCS Admin Maintenance

WordPress plugin SMNTCS Admin Maintenance scored89%from 54 tests.

About plugin

  • Plugin page: smntcs-admin-main...
  • Plugin version: 2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.4
  • WordPress version: 6.3.1
  • First release: May 29, 2017
  • Latest release: Oct 15, 2023
  • Number of updates: 33
  • Update frequency: every 70.7 days
  • Top authors: nielslange (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Server-side resources used by SMNTCS Admin Maintenance
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.48 ▼5.34
Dashboard /wp-admin3.33 ▼0.0243.00 ▼19.55
Posts /wp-admin/edit.php3.38 ▲0.0245.67 ▼3.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.40 ▼12.57
Media Library /wp-admin/upload.php3.25 ▲0.0233.35 ▲0.24

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for SMNTCS Admin Maintenance
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.09 ▼0.271.61 ▼0.0439.31 ▼1.73
Dashboard /wp-admin2,192 ▲155.50 ▼0.1583.66 ▼1.0839.70 ▼2.18
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0234.46 ▼2.6932.96 ▼2.99
Add New Post /wp-admin/post-new.php1,528 ▼023.26 ▲0.24679.12 ▲10.1760.20 ▲6.36
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.0093.07 ▼7.6542.57 ▼0.77

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: You can look at the official readme.txt

smntcs-admin-maintenance/smntcs-admin-maintenance.php 92% from 13 tests

This is the main PHP file of "SMNTCS Admin Maintenance" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 152 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected7,824 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JSON6007,545
PHP1206488
JavaScript5142186
XML1131451
Markdown133045
YAML1009

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.22MB with 0.21MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/icon-256x256.png19.13KB0.00KB▼ 100.00%
(invalid) assets/icon-128x128.png6.20KB0.00KB▼ 100.00%
(invalid) assets/banner-772x250.png65.35KB0.00KB▼ 100.00%
assets/screenshot-1.png131.42KB27.84KB▼ 78.82%