Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wpygments/wpygments.inc.php+138
Function create_function() is deprecated
Server metrics [RAM: ▼1.88MB] [CPU: ▼56.03ms] Passed 4 tests
An overview of server-side resources used by WPygments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.35 | 4.97 ▼37.09 |
Dashboard /wp-admin | 2.14 ▼1.17 | 7.22 ▼48.26 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 6.97 ▼46.88 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 6.09 ▼91.89 |
Media Library /wp-admin/upload.php | 2.14 ▼1.10 | 7.14 ▼34.72 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WPygments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.65 ▲0.29 | 1.86 ▼0.29 | 42.01 ▼4.32 |
Dashboard /wp-admin | 2,195 ▲18 | 5.70 ▲0.06 | 89.06 ▼12.55 | 42.15 ▼2.89 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.01 | 37.38 ▲0.58 | 34.05 ▲1.44 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.13 ▼0.05 | 690.64 ▼14.69 | 59.96 ▲8.81 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.23 ▲0.03 | 113.30 ▼8.12 | 47.61 ▼2.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wpygments/wpygments.inc.php+138
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpygments/wpygments.inc.php:138
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
wpygments/wpygments.inc.php 92% from 13 tests
The principal PHP file in "WPygments" v. 1.1.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wpygments.php" instead of "wpygments.inc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,076 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 23 | 21 | 20 | 2,398 |
Markdown | 2 | 96 | 0 | 321 |
PHP | 3 | 78 | 128 | 302 |
Python | 2 | 17 | 9 | 33 |
JSON | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
An short overview of 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.20 |
Average class complexity | 7.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 9 | 69.23% |
▷ Protected methods | 3 | 23.08% |
▷ Private methods | 1 | 7.69% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
40 compressed PNG files occupy 0.48MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Documentation/img/style__0014_Layer-16.png | 12.01KB | 10.88KB | ▼ 9.44% |
PHPygments/Documentation/img/style__0011_Layer-13.png | 13.38KB | 12.20KB | ▼ 8.84% |
Documentation/img/style__0012_Layer-14.png | 12.55KB | 11.74KB | ▼ 6.44% |
Documentation/img/style__0007_Layer-9.png | 12.39KB | 11.61KB | ▼ 6.31% |
PHPygments/Documentation/img/style__0001_Layer-3.png | 12.32KB | 11.57KB | ▼ 6.07% |