Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.54ms] Passed 4 tests
Server-side resources used by rtSyntax
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.05 | 38.53 ▼3.63 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.77 ▼2.23 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.72 ▼3.51 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.53 ▼7.54 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.93 ▼3.48 |
rtSyntax /wp-admin/options-general.php?page=rtsyntax | 3.24 | 31.54 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
rtsyntax_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
rtSyntax: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.78 ▼0.60 | 6.86 ▲5.08 | 44.89 ▲0.64 |
Dashboard /wp-admin | 2,213 ▲34 | 5.85 ▼0.01 | 101.00 ▼2.29 | 42.49 ▲1.62 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.03 | 40.80 ▼1.05 | 34.48 ▼8.33 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.44 ▼5.64 | 666.39 ▲20.30 | 62.72 ▲6.55 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.24 ▼0.00 | 95.76 ▼6.78 | 39.48 ▼1.81 |
rtSyntax /wp-admin/options-general.php?page=rtsyntax | 900 | 2.06 | 25.10 | 27.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- rtsyntax_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 register_activation_hook() in wp-content/plugins/rtsyntax/rtsyntax.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (Simple, single setting), #2 (Visual Editor buttons), #3 (Adding code), #4 (Code added to visual editor), #5 (Published code)
rtsyntax/rtsyntax.php Passed 13 tests
The principal PHP file in "rtSyntax" v. 1.0.5 is loaded by WordPress automatically on each request
75 characters long description:
A no-fuss, lightweight, fast and optimised syntax highlighter for WordPress
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
No dangerous file extensions were detected2,546 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 26 | 334 | 88 | 2,243 |
JavaScript | 3 | 8 | 1 | 106 |
PHP | 1 | 16 | 10 | 103 |
HTML | 1 | 4 | 0 | 83 |
YAML | 1 | 3 | 9 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.78MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 146.87KB | 68.69KB | ▼ 53.23% |
img/rtkey.png | 1.14KB | 0.20KB | ▼ 82.83% |
img/brown_papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |
screenshot-1.png | 61.94KB | 27.92KB | ▼ 54.92% |
img/school_book.png | 0.47KB | 0.34KB | ▼ 27.37% |