Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲984.56ms] 75% from 4 tests
An overview of server-side resources used by Tribe Object Cache
The following require your attention
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 984.56ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▼0.00 | 38.85 ▼7.34 |
Dashboard /wp-admin | 7.33 ▲4.03 | 1,624.14 ▲1,564.07 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 1,373.17 ▲1,324.64 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 1,425.65 ▲1,335.77 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 1,326.16 ▲1,285.18 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- Illegal file modification found: 1 file (0.85KB) outside of "wp-content/plugins/tribe-object-cache/" and "wp-content/uploads/"
- (new file) wp-content/object-cache.php
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tribe Object Cache
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,740 ▼21 | 14.44 ▲0.09 | 1.94 ▲0.37 | 40.82 ▼2.60 |
Dashboard /wp-admin | 2,154 ▼26 | 5.51 ▼0.07 | 93.36 ▼1.28 | 40.24 ▼0.29 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.05 | 35.31 ▲0.79 | 36.74 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,526 ▼5 | 23.10 ▼0.03 | 650.44 ▲15.29 | 59.81 ▼1.11 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.01 | 105.03 ▼11.91 | 42.85 ▼6.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/tribe-object-cache/tribe-object-cache.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/tribe-object-cache/lib/wincache/object-cache.php:18
- > 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/tribe-object-cache/lib/object-cache.php on line 9
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/cache.php' (include_path='.:/usr/share/php') in wp-content/plugins/tribe-object-cache/lib/object-cache.php on line 33
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/tribe-object-cache/lib/object-cache.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/tribe-object-cache/lib/apc/object-cache.php:19
- > PHP Warning
require_once(ABSPATHWPINC/cache.php): failed to open stream: No such file or directory in wp-content/plugins/tribe-object-cache/lib/object-cache.php on line 33
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tribe-object-cache/lib/object-cache.php on line 33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: batcache, memcached, apc, object cache, xcache...
tribe-object-cache/tribe-object-cache.php Passed 13 tests
The primary PHP file in "Tribe Object Cache" version 1.0.4 is used by WordPress to initiate all plugin functionality
119 characters long description:
Simple plugin that supports Memcached, APC, Xcache or WinCache based on your system. All you have to do is activate it.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin983 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 293 | 79 | 983 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 22.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 63 | 98.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.56% |
Functions | 52 | |
▷ Named functions | 52 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin