Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.73ms] Passed 4 tests
An overview of server-side resources used by Read More Buddy
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 38.38 ▼1.71 |
Dashboard /wp-admin | 3.43 ▲0.12 | 42.70 ▼5.95 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 44.04 ▼3.38 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 82.96 ▼3.87 |
Media Library /wp-admin/upload.php | 3.35 ▲0.11 | 35.51 ▲3.10 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 16 new options
New WordPress options |
---|
theysaidso_admin_options |
read_mb_button_hover |
widget_recent-posts |
read_mb_text_hover |
read_mb_read_more_text |
db_upgraded |
read_mb_width |
read_mb_font_size |
read_mb_display_position |
read_mb_text_color |
... |
Browser metrics Passed 4 tests
Read More Buddy: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲188 | 13.68 ▼0.75 | 5.18 ▲3.33 | 40.76 ▼10.08 |
Dashboard /wp-admin | 2,240 ▲55 | 5.09 ▲0.24 | 100.06 ▼18.83 | 39.22 ▼11.22 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.30 ▲0.19 | 34.92 ▼1.90 | 31.50 ▼1.77 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 21.92 ▲4.41 | 651.51 ▼30.42 | 37.12 ▼15.28 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.27 ▼0.03 | 96.05 ▼10.71 | 45.86 ▲0.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- 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
Even though no errors were found, this is by no means 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
Please fix the following items
- 7× PHP files output text when accessed directly:
- > /wp-content/plugins/read-more-buddy/includes/._class-read_mb.php
- > /wp-content/plugins/read-more-buddy/includes/._class-read_mb-loader.php
- > /wp-content/plugins/read-more-buddy/admin/._class-read_mb-admin.php
- > /wp-content/plugins/read-more-buddy/public/partials/read_mb-public-display.php
- > /wp-content/plugins/read-more-buddy/includes/._class-read_mb-deactivator.php
- > /wp-content/plugins/read-more-buddy/includes/._class-read_mb-uninstall.php
- > /wp-content/plugins/read-more-buddy/includes/._class-read_mb-activator.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: read less, jquery, read more, read
read-more-buddy/read_mb.php 77% from 13 tests
"Read More Buddy" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("read-more-buddy.php" instead of "read_mb.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected559 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 232 | 605 | 471 |
XML | 10 | 0 | 0 | 55 |
JavaScript | 3 | 15 | 28 | 33 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 3.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/donate-paypal-main.png | 4.07KB | 4.05KB | 0.46% |
admin/images/donate-paypal-main.png | 4.07KB | 4.05KB | 0.46% |