Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.39ms] Passed 4 tests
A check of server-side resources used by FOCUS Cache
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.76 ▼4.68 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.18 ▼2.94 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.72 ▼2.96 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.77 ▼14.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.48 ▼0.64 |
FOCUS Cache /wp-admin/options-general.php?page=focus-cache | 3.25 | 28.50 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
FOCUS Cache: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.44 ▲0.06 | 1.77 ▼0.21 | 41.33 ▼6.79 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼0.27 | 108.59 ▼1.18 | 39.57 ▼4.76 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.18 ▲0.15 | 40.28 ▼1.23 | 35.41 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.05 ▼0.20 | 625.95 ▲12.82 | 48.58 ▼4.77 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▲0.06 | 98.02 ▼0.19 | 41.55 ▲1.45 |
FOCUS Cache /wp-admin/options-general.php?page=focus-cache | 775 | 2.06 | 24.85 | 28.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant YEAR_IN_SECONDS - assumed 'YEAR_IN_SECONDS' (this will throw an Error in a future version of PHP) in wp-content/plugins/focus-object-cache/includes/object-cache.php on line 30
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: caching, cache
focus-object-cache/focus.php 85% from 13 tests
The principal PHP file in "FOCUS Cache" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("focus-object-cache.php" instead of "focus.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin671 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 197 | 801 | 671 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 60.00 |
▷ Minimum class complexity | 59.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 74.42% |
▷ Protected methods | 11 | 25.58% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin