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 gracefully, with no errors
Server metrics [RAM: ▲0.33MB] [CPU: ▼2.77ms] Passed 4 tests
An overview of server-side resources used by
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 37.09 ▼5.00 |
Dashboard /wp-admin | 3.63 ▲0.33 | 48.77 ▲0.19 |
Posts /wp-admin/edit.php | 3.74 ▲0.39 | 48.92 ▲0.68 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 84.45 ▼4.59 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 35.13 ▼1.66 |
Prismatic /wp-admin/options-general.php?page=prismatic | 3.52 | 34.35 |
Server storage [IO: ▲1.86MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 232 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.80 ▲0.24 | 1.63 ▲0.02 | 41.36 ▼1.20 |
Dashboard /wp-admin | 2,207 ▲19 | 4.90 ▼1.00 | 101.73 ▲3.06 | 41.41 ▼3.70 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.06 ▲0.06 | 37.13 ▼4.29 | 33.87 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.25 ▲0.02 | 671.53 ▼26.33 | 53.79 ▼0.42 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.20 ▼0.03 | 96.06 ▼14.78 | 42.27 ▼4.68 |
Prismatic /wp-admin/options-general.php?page=prismatic | 869 | 2.04 | 38.31 | 50.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
prismatic/prismatic.php Passed 13 tests
The main PHP script in "" version 3.4 is automatically included on every request by WordPress
80 characters long description:
Display beautiful syntax-highlighted code snippets with Prism.js or Highlight.js
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin5,146 lines of code in 208 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 82 | 132 | 16 | 2,613 |
PHP | 15 | 847 | 63 | 1,606 |
SVG | 2 | 0 | 0 | 752 |
CSS | 109 | 19 | 294 | 175 |
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.48 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 16 | |
▷ Static methods | 6 | 37.50% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 65 | |
▷ Named functions | 65 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/highlight/css/brown-papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |