Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.21MB] [CPU: ▼14.03ms] Passed 4 tests
Analyzing server-side resources used by Sezame
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.67 | 15.48 ▼26.45 |
Dashboard /wp-admin | 3.35 ▲0.05 | 44.00 ▼8.21 |
Posts /wp-admin/edit.php | 3.11 ▼0.24 | 28.96 ▼19.78 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.48 ▼1.66 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.98 ▲2.28 |
Server storage [IO: ▲6.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 364 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Sezame
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲178 | 14.06 ▼0.32 | 5.85 ▲4.08 | 45.80 ▲0.91 |
Dashboard /wp-admin | 2,225 ▲37 | 5.87 ▲1.00 | 97.79 ▼12.50 | 74.08 ▲27.36 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.00 ▲0.00 | 38.79 ▲1.42 | 33.20 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,551 ▲37 | 23.29 ▲5.72 | 642.33 ▲35.53 | 73.35 ▲3.33 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.27 ▲0.02 | 96.82 ▲3.12 | 66.30 ▲25.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Almost there! Just fix the following items
- 46× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sezame/sezame.php:13
- > PHP Fatal error
Uncaught Error: Class 'Buzz\\Message\\AbstractMessage' not found in wp-content/plugins/sezame/includes/Buzz/Message/Request.php:7
- > PHP Fatal error
Uncaught Error: Class 'Buzz\\Client\\AbstractClient' not found in wp-content/plugins/sezame/includes/Buzz/Client/AbstractStream.php:7
- > PHP Fatal error
Uncaught Error: Class 'SezameLib\\Request\\Generic' not found in wp-content/plugins/sezame/includes/SezameLib/Request/Auth.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Buzz\\Message\\MessageInterface' not found in wp-content/plugins/sezame/includes/Buzz/Message/Form/FormUploadInterface.php:7
- > PHP Fatal error
Uncaught Error: Class 'SezameLib\\Response\\Generic' not found in wp-content/plugins/sezame/includes/SezameLib/Response/Cancel.php:5
- > PHP Fatal error
Uncaught Error: Class 'SezameLib\\Response\\Response' not found in wp-content/plugins/sezame/includes/SezameLib/Response/Generic.php:5
- > PHP Fatal error
Uncaught Error: Class 'SezameLib\\Response\\Generic' not found in wp-content/plugins/sezame/includes/SezameLib/Response/LinkStatus.php:5
- > PHP Fatal error
Uncaught Error: Class 'SezameLib\\Request\\Generic' not found in wp-content/plugins/sezame/includes/SezameLib/Request/Status.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Buzz\\Client\\ClientInterface' not found in wp-content/plugins/sezame/includes/Buzz/Client/AbstractClient.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #1 is missing in sezame/assets to your readme.txt
sezame/sezame.php 92% from 13 tests
The main file in "Sezame" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin5,208 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 1,243 | 1,315 | 4,898 |
PO File | 1 | 62 | 65 | 169 |
JavaScript | 1 | 32 | 0 | 141 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 18 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 6 | 9.38% |
▷ Concrete classes | 58 | 90.62% |
▷ Final classes | 0 | 0.00% |
Methods | 483 | |
▷ Static methods | 7 | 1.45% |
▷ Public methods | 429 | 88.82% |
▷ Protected methods | 7 | 1.45% |
▷ Private methods | 47 | 9.73% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 26 | |
▷ Global constants | 2 | 7.69% |
▷ Class constants | 24 | 92.31% |
▷ Public constants | 24 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
50 PNG files occupy 0.19MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/google-play-badge.png | 48.58KB | 3.49KB | ▼ 92.81% |
assets/image/qrv3.png | 0.15KB | 0.14KB | ▼ 5.19% |
assets/image/qrv35.png | 0.25KB | 0.23KB | ▼ 9.20% |
assets/image/qrv24.png | 0.26KB | 0.24KB | ▼ 6.84% |
assets/apple-itunes-badge.png | 39.91KB | 2.69KB | ▼ 93.25% |