Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.02ms] Passed 4 tests
Analyzing server-side resources used by Cache SEO Speed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 41.89 ▲0.34 |
Dashboard /wp-admin | 3.38 ▲0.08 | 63.72 ▲12.26 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 50.35 ▲2.49 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 85.31 ▼18.19 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.96 ▲3.28 |
Cache SEO Speed /wp-admin/admin.php?page=cache-seo-speed | 3.55 | 37.90 |
About /wp-admin/admin.php?page=CssWallRioMain_about | 3.42 | 36.00 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- The plugin illegally modified 3 files (19.69KB) outside of "wp-content/plugins/cache-seo-speed/" and "wp-content/uploads/"
- (modified) index.php
- (modified) wp-content/themes/twentytwentyone/functions.php
- (new file) wp-content/cache/cache-seo-speed/.css-config.dat
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
cacha-seo-speed-start |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Cache SEO Speed
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.35 ▼0.00 | 1.67 ▼0.03 | 46.44 ▲1.06 |
Dashboard /wp-admin | 2,211 ▲34 | 5.61 ▲0.08 | 96.22 ▲3.08 | 70.32 ▲26.81 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.98 ▼0.04 | 35.32 ▼4.35 | 33.48 ▼4.98 |
Add New Post /wp-admin/post-new.php | 1,703 ▲177 | 22.19 ▼0.87 | 762.07 ▲70.57 | 56.01 ▲0.51 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.21 ▲0.07 | 96.76 ▼23.39 | 59.26 ▲10.48 |
Cache SEO Speed /wp-admin/admin.php?page=cache-seo-speed | 1,354 | 2.00 | 24.78 | 49.59 |
About /wp-admin/admin.php?page=CssWallRioMain_about | 858 | 2.16 | 26.31 | 33.02 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cache-seo-speed/views/about/index.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/cache-seo-speed/CssWallRioMain.php:31
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cache-seo-speed/views/about/index.php on line 8
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/cache-seo-speed/src/CssWallRio_init.php on line 64
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cache-seo-speed/views/settings/index.php on line 9
- > PHP Notice
Undefined index: HTTP_USER_AGENT in wp-content/plugins/cache-seo-speed/src/CssWallRio_init.php on line 64
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/cache-seo-speed/views/about/index.php:13
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cache-seo-speed/views/settings/index.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/cache-seo-speed/views/settings/index.php:15
- > PHP Fatal error
Uncaught Error: Class 'Zip' not found in wp-content/plugins/cache-seo-speed/src/zip/test/test.php:33
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=cache-seo-speed
- > Network (severe)
https://wallrio.com/wordpress/plugins/cache-seo-speed/pagseguro/donate-button.jpg - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
cache-seo-speed/CssWallRioMain.php 92% from 13 tests
The main file in "Cache SEO Speed" v. 0.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cache-seo-speed.php" instead of "CssWallRioMain.php")
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
No dangerous file extensions were detected5,353 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 1,678 | 2,245 | 5,229 |
Markdown | 1 | 25 | 0 | 108 |
CSS | 2 | 0 | 0 | 9 |
JSON | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 71.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 553.00 |
Average method complexity | 7.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 124 | |
▷ Static methods | 40 | 32.26% |
▷ Public methods | 120 | 96.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 3.23% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 68 | |
▷ Global constants | 68 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon-default.png | 27.28KB | 13.68KB | ▼ 49.85% |
icon.png | 0.65KB | 0.72KB | 0.00% |