84% sp-admin

Code Review | SP-Admin

WordPress plugin SP-Admin scored84%from 54 tests.

About plugin

  • Plugin page: sp-admin
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2012
  • Latest release: Apr 9, 2013
  • Number of updates: 7
  • Update frequency: every 21.3 days
  • Top authors: joeybdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,235 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.00MB] [CPU: ▼3.46ms] Passed 4 tests

An overview of server-side resources used by SP-Admin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.91 ▲1.69
Dashboard /wp-admin3.31 ▲0.0043.17 ▼5.22
Posts /wp-admin/edit.php3.36 ▲0.0047.46 ▲1.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.52 ▼8.15
Media Library /wp-admin/upload.php3.23 ▲0.0032.88 ▼2.16

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for SP-Admin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲1014.06 ▼0.291.74 ▼0.1238.39 ▼6.29
Dashboard /wp-admin2,202 ▲255.56 ▼0.1781.78 ▼5.6437.13 ▼6.58
Posts /wp-admin/edit.php2,105 ▲81.98 ▼0.0535.78 ▼0.3735.17 ▼0.67
Add New Post /wp-admin/post-new.php1,613 ▲8524.75 ▲1.61610.38 ▼48.3733.16 ▼19.24
Media Library /wp-admin/upload.php1,408 ▲144.20 ▼0.0494.27 ▼11.4342.47 ▼6.83

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

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sp-admin/sp-admin.php:17

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (SP-Admin, administration theme.) image missing
You can take inspiration from this readme.txt

sp-admin/sp-admin.php Passed 13 tests

The principal PHP file in "SP-Admin" v. 1.0 is loaded by WordPress automatically on each request
130 characters long description:
A clean and simple Wordpress Administration template, putting a fresh and more modern spin on the current administration template.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected88 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS17077
PHP16811

PHP code Passed 2 tests

A short review of 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.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png42.69KB18.03KB▼ 57.75%