89% wp-spider-cache

Code Review | WP Spider Cache

WordPress plugin WP Spider Cache scored89%from 54 tests.

About plugin

  • Plugin page: wp-spider-cache
  • Plugin version: 4.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7
  • WordPress version: 6.3.1
  • First release: Feb 16, 2016
  • Latest release: Nov 20, 2016
  • Number of updates: 12
  • Update frequency: every 23.2 days
  • Top authors: johnjamesjacoby (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /3,559 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
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.23ms] Passed 4 tests

Analyzing server-side resources used by WP Spider Cache
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1640.80 ▼1.62
Dashboard /wp-admin3.46 ▲0.1146.68 ▼17.34
Posts /wp-admin/edit.php3.57 ▲0.2152.58 ▲6.82
Add New Post /wp-admin/post-new.php6.04 ▲0.1596.24 ▼1.29
Media Library /wp-admin/upload.php3.38 ▲0.1534.78 ▼0.68

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Spider Cache
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4513.29 ▼1.311.61 ▼0.4442.73 ▼12.13
Dashboard /wp-admin2,222 ▲345.79 ▲0.8699.70 ▼20.1341.71 ▼2.26
Posts /wp-admin/edit.php2,108 ▲371.99 ▼0.0139.47 ▲3.5737.25 ▲1.36
Add New Post /wp-admin/post-new.php1,555 ▲4118.08 ▲0.54596.86 ▼85.7162.94 ▲2.26
Media Library /wp-admin/upload.php1,398 ▲104.20 ▲0.0197.36 ▼7.7340.72 ▼5.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

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 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:
  • Screenshots: These screenshots require images: #1 (Admin UI), #2 (Servers), #3 (Data View)
Please take inspiration from this readme.txt

wp-spider-cache/wp-spider-cache.php 92% from 13 tests

"WP Spider Cache" version 4.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/wp-spider-cache/assets/lang/" does not exist

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
Good job! No executable or dangerous file extensions detected2,219 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP86892,5251,994
JavaScript12614146
CSS114079

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity66.80
▷ Minimum class complexity2.00
▷ Maximum class complexity147.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods121
▷ Static methods129.92%
▷ Public methods8267.77%
▷ Protected methods108.26%
▷ Private methods2923.97%
Functions54
▷ Named functions54100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected