Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼0.79ms] Passed 4 tests
An overview of server-side resources used by Timed Content
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 34.92 ▼5.79 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.46 ▼3.75 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.98 ▲3.16 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 94.39 ▲5.70 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.96 ▲3.20 |
Add new /wp-admin/post-new.php?post_type=timed_content_rule | 3.39 | 42.10 |
Timed Content rules /wp-admin/edit.php?post_type=timed_content_rule | 3.38 | 34.80 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Timed Content
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲190 | 13.59 ▼0.96 | 7.81 ▲6.18 | 43.83 ▼0.19 |
Dashboard /wp-admin | 2,242 ▲65 | 4.88 ▼1.00 | 111.00 ▲6.71 | 43.86 ▲0.44 |
Posts /wp-admin/edit.php | 2,121 ▲29 | 2.04 ▲0.03 | 40.15 ▼1.20 | 35.87 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 17.72 ▼0.51 | 618.79 ▼4.07 | 62.40 ▲9.91 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.22 ▲0.04 | 102.89 ▼0.25 | 41.51 ▼2.94 |
Add new /wp-admin/post-new.php?post_type=timed_content_rule | 4,303 | 4.44 | 137.07 | 63.90 |
Timed Content rules /wp-admin/edit.php?post_type=timed_content_rule | 1,145 | 2.49 | 47.98 | 28.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _ex() in wp-content/plugins/timed-content/tinymce_plugin/dialog.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=timed_content_rule
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28609 "jQuery.Deferred exception: timed_content_rule_exceptions_dates_picker is not defined" "ReferenceError: timed_content_rule_exceptions_dates_picker is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/timed-content/js/timed-content-admin.js?ver=2.77:72:25)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit.php?post_type=timed_content_rule
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28721 Uncaught ReferenceError: timed_content_rule_exceptions_dates_picker is not defined
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
timed-content/timed-content.php 92% from 13 tests
The main PHP script in "Timed Content" version 2.77 is automatically included on every request by WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 201 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected6,820 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 225 | 333 | 2,812 |
JavaScript | 36 | 228 | 275 | 2,002 |
CSS | 4 | 62 | 65 | 1,213 |
PO File | 1 | 215 | 263 | 651 |
HTML | 1 | 33 | 4 | 110 |
SVG | 1 | 0 | 0 | 27 |
Markdown | 1 | 4 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 174.50 |
▷ Minimum class complexity | 86.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 8.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.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 | 49 | |
▷ Static methods | 1 | 2.04% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/jqueryui/1.10.3/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |
css/jqueryui/1.10.3/themes/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/jqueryui/1.10.3/themes/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
css/jqueryui/1.10.3/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
css/jqueryui/1.10.3/themes/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |