Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.66ms] Passed 4 tests
Analyzing server-side resources used by Easy Syntax Highlighter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.44 ▼0.02 | 25.72 ▼14.63 |
Dashboard /wp-admin | 3.37 ▲0.07 | 47.12 ▼5.45 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 44.44 ▲0.76 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 79.99 ▼12.40 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.30 ▼2.15 |
Easy Syntax Highlighter /wp-admin/options-general.php?page=easy-syntax-highlighter | 3.26 | 29.98 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Easy Syntax Highlighter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 14.17 ▼0.26 | 8.98 ▲7.27 | 43.43 ▲5.69 |
Dashboard /wp-admin | 2,213 ▲25 | 5.85 ▲0.96 | 114.14 ▲9.44 | 42.18 ▲0.06 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.01 ▲0.02 | 35.59 ▼3.55 | 33.85 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,548 ▲6 | 18.09 ▼4.68 | 629.13 ▼28.70 | 48.10 ▼6.90 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.21 ▼0.02 | 97.38 ▼3.95 | 42.69 ▼1.23 |
Easy Syntax Highlighter /wp-admin/options-general.php?page=easy-syntax-highlighter | 954 | 1.84 | 24.72 | 28.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-syntax-highlighter/index.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% 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:
- Screenshots: No descriptions were found for these screenshots #2, #3 in easy-syntax-highlighter/assets to your readme.txt
easy-syntax-highlighter/index.php 85% from 13 tests
The entry point to "Easy Syntax Highlighter" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-syntax-highlighter.php" instead of "index.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
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
No dangerous file extensions were detected2,464 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 35 | 390 | 1,816 | 2,205 |
PHP | 1 | 38 | 20 | 188 |
CSS | 32 | 7 | 54 | 71 |
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.62 |
Average class complexity | 64.00 |
▷ Minimum class complexity | 64.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 10.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin