Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.42ms] Passed 4 tests
Server-side resources used by Simple Fast Highlighter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.20 ▲4.02 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.71 ▼3.82 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.10 ▼4.19 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 81.37 ▼20.33 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.37 ▲2.68 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Fast Highlighter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.36 ▲0.01 | 1.81 ▲0.13 | 39.24 ▼0.44 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.05 | 89.68 ▲5.46 | 41.39 ▼2.41 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.00 | 40.07 ▲0.58 | 36.41 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.69 ▲0.56 | 702.98 ▲36.09 | 53.22 ▼0.19 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▼0.00 | 92.27 ▼1.74 | 41.66 ▼0.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 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/simple-fast-highlighter/simple-fast-highlighter.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: code, highlighter, sourcecode, highlight, syntax
simple-fast-highlighter/simple-fast-highlighter.php Passed 13 tests
The main file in "Simple Fast Highlighter" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
46 characters long description:
Fast syntax highlighter written in Javascript.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin607 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 48 | 27 | 307 |
HTML | 1 | 59 | 1 | 202 |
PHP | 1 | 6 | 14 | 79 |
CSS | 2 | 4 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
sfh_closed.png | 11.87KB | 3.27KB | ▼ 72.46% |
sfh_open_enabled.png | 27.54KB | 8.91KB | ▼ 67.64% |
sfh_open_disabled.png | 25.54KB | 8.10KB | ▼ 68.28% |