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.38MB] [CPU: ▲3.28ms] Passed 4 tests
Server-side resources used by API Cache Pro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.42 | 42.16 ▼1.59 |
Dashboard /wp-admin | 3.72 ▲0.41 | 55.34 ▲4.28 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 59.67 ▲8.76 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 110.38 ▲20.15 |
Media Library /wp-admin/upload.php | 3.58 ▲0.34 | 38.40 ▲1.66 |
Server storage [IO: ▲0.07MB] [DB: ▲0.38MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by API Cache Pro
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 13.68 ▼0.57 | 1.87 ▲0.26 | 41.57 ▲0.95 |
Dashboard /wp-admin | 2,206 ▼0 | 4.86 ▼0.02 | 108.63 ▲0.21 | 43.11 ▲6.49 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.04 | 42.12 ▲4.87 | 36.56 ▲4.22 |
Add New Post /wp-admin/post-new.php | 1,535 ▲2 | 23.01 ▼0.11 | 624.04 ▼78.17 | 58.72 ▼5.97 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.08 | 97.73 ▼15.06 | 41.66 ▼9.91 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Exception: Could not find /tmp/wordpress-tests-lib/includes/functions.php, have you run bin/install-wp-tests.sh ? in wp-content/plugins/api-cache-pro/tests/bootstrap.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/api-cache-pro/tests/test-files.php:11
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: api-cache-pro, cache, api
api-cache-pro/class-api-cache-pro.php 92% from 13 tests
The primary PHP file in "API Cache Pro" version 0.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("api-cache-pro.php" instead of "class-api-cache-pro.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin670 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 167 | 267 | 347 |
Bourne Shell | 1 | 21 | 11 | 120 |
Markdown | 2 | 30 | 0 | 74 |
YAML | 1 | 7 | 0 | 53 |
JSON | 3 | 0 | 0 | 39 |
XML | 3 | 7 | 11 | 37 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There are no PNG files in this plugin