Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▼10.43ms] Passed 4 tests
An overview of server-side resources used by WP-Syntax
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.58 | 38.18 ▼2.16 |
Dashboard /wp-admin | 3.89 ▲0.54 | 45.78 ▼19.31 |
Posts /wp-admin/edit.php | 3.94 ▲0.58 | 46.78 ▼0.63 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 85.87 ▼19.62 |
Media Library /wp-admin/upload.php | 3.75 ▲0.52 | 39.61 ▲8.27 |
Server storage [IO: ▲4.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 268 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP-Syntax
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲126 | 13.73 ▼0.53 | 8.29 ▲6.66 | 40.58 ▼2.37 |
Dashboard /wp-admin | 2,186 ▲15 | 5.61 ▲0.03 | 92.91 ▼7.86 | 41.12 ▼1.66 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▲0.02 | 39.05 ▲1.37 | 35.69 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.28 ▲0.07 | 673.02 ▲37.78 | 53.92 ▲3.28 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.17 ▼0.05 | 98.43 ▼2.64 | 42.43 ▲0.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 2169× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant GESHI_NUMBER_FLT_SCI_ZERO - assumed 'GESHI_NUMBER_FLT_SCI_ZERO' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-syntax/geshi/geshi/aimms.php on line 281
- > PHP Warning
Use of undefined constant GESHI_NUMBER_FLT_SCI_ZERO - assumed 'GESHI_NUMBER_FLT_SCI_ZERO' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-syntax/geshi/geshi/cpp-winapi.php on line 789
- > PHP Warning
Use of undefined constant GESHI_NUMBER_FLT_SCI_ZERO - assumed 'GESHI_NUMBER_FLT_SCI_ZERO' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-syntax/geshi/geshi/q.php on line 122
- > PHP Warning
Use of undefined constant GESHI_NEVER - assumed 'GESHI_NEVER' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-syntax/geshi/geshi/io.php on line 131
- > PHP Warning
Use of undefined constant GESHI_COMMENTS - assumed 'GESHI_COMMENTS' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-syntax/geshi/geshi/hicest.php on line 66
- > PHP Warning
Use of undefined constant GESHI_NEVER - assumed 'GESHI_NEVER' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-syntax/geshi/geshi/css.php on line 931
- > PHP Warning
Use of undefined constant GESHI_NUMBER_INT_BASIC - assumed 'GESHI_NUMBER_INT_BASIC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-syntax/geshi/geshi/c_winapi.php on line 83
- > PHP Warning
Use of undefined constant GESHI_NUMBER_OCT_PREFIX - assumed 'GESHI_NUMBER_OCT_PREFIX' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-syntax/geshi/geshi/q.php on line 119
- > PHP Warning
Use of undefined constant GESHI_NEVER - assumed 'GESHI_NEVER' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-syntax/geshi/geshi/smalltalk.php on line 147
- > PHP Warning
Use of undefined constant GESHI_CAPS_NO_CHANGE - assumed 'GESHI_CAPS_NO_CHANGE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-syntax/geshi/geshi/texgraph.php on line 42
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% 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:
- Screenshots: Please add images for these screenshots: #1 (PHP, no line numbers.), #2 (Java, with line numbers.), #3 (Ruby, with line numbers starting at 18.)
wp-syntax/wp-syntax.php 85% from 13 tests
The main PHP script in "WP-Syntax" version 1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Domain Path: The domain path folder was not found ("/lang")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected72,249 lines of code in 263 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 261 | 2,029 | 14,912 | 72,100 |
CSS | 1 | 9 | 2 | 86 |
JavaScript | 1 | 13 | 20 | 63 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 190)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 225.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 638.00 |
Average method complexity | 6.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 190.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 20 | 17.39% |
▷ Public methods | 91 | 79.13% |
▷ Protected methods | 20 | 17.39% |
▷ Private methods | 4 | 3.48% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 59 | |
▷ Global constants | 59 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 10.63KB | 4.18KB | ▼ 60.66% |
screenshot-2.png | 10.27KB | 4.40KB | ▼ 57.18% |
screenshot-3.png | 10.23KB | 3.52KB | ▼ 65.55% |