90% spinupwp

Code Review | SpinupWP

WordPress plugin SpinupWP scored90%from 54 tests.

About plugin

  • Plugin page: spinupwp
  • Plugin version: 1.5.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: May 16, 2019
  • Latest release: Nov 5, 2022
  • Number of updates: 59
  • Update frequency: every 22.0 days
  • Top authors: deliciousbrains (76.27%)spinupwp (25.42%)

Code review

54 tests

User reviews

11 reviews

Install metrics

20,000+ active /216,574 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼8.27ms] Passed 4 tests

This is a short check of server-side resources used by SpinupWP
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2243.48 ▲1.54
Dashboard /wp-admin3.55 ▲0.2150.98 ▼20.46
Posts /wp-admin/edit.php3.60 ▲0.2553.64 ▲1.09
Add New Post /wp-admin/post-new.php6.09 ▲0.2087.62 ▼15.25
Media Library /wp-admin/upload.php3.41 ▲0.1837.41 ▲2.08

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for SpinupWP
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲2214.29 ▼0.321.82 ▼0.1443.05 ▼0.62
Dashboard /wp-admin2,217 ▲435.65 ▲0.0596.49 ▼7.0143.61 ▲0.27
Posts /wp-admin/edit.php2,119 ▲192.01 ▲0.0337.22 ▼2.5836.21 ▼1.24
Add New Post /wp-admin/post-new.php1,540 ▲1223.08 ▼0.13642.69 ▼37.5065.02 ▼7.42
Media Library /wp-admin/upload.php1,422 ▲194.23 ▲0.03104.14 ▼13.7647.15 ▼1.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
3 plugin tags: caching, cache, performance

spinupwp/spinupwp.php Passed 13 tests

The main PHP file in "SpinupWP" ver. 1.5.1 adds more information about the plugin and also serves as the entry point for this plugin
23 characters long description:
SpinupWP helper plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,788 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP257921,5572,722
CSS13030
JSON20026
JavaScript11010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity33.07
▷ Minimum class complexity1.00
▷ Maximum class complexity303.00
Average method complexity3.94
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods157
▷ Static methods2113.38%
▷ Public methods11875.16%
▷ Protected methods2817.83%
▷ Private methods117.01%
Functions37
▷ Named functions2567.57%
▷ Anonymous functions1232.43%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin