Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.03ms] Passed 4 tests
An overview of server-side resources used by YaBlog
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 44.88 ▲3.66 |
Dashboard /wp-admin | 3.34 ▲0.04 | 45.04 ▼6.91 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 51.46 ▲6.04 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 95.86 ▼2.97 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.07 ▼1.91 |
YaBlog /wp-admin/options-general.php?page=yablog_settings_disabler | 3.24 | 33.18 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
yablog_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for YaBlog
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲62 | 13.22 ▼1.16 | 1.66 ▼0.43 | 42.94 ▼3.37 |
Dashboard /wp-admin | 2,228 ▲40 | 5.85 ▲0.80 | 97.02 ▼11.61 | 75.22 ▲30.72 |
Posts /wp-admin/edit.php | 2,114 ▲28 | 1.98 ▼0.06 | 38.36 ▲3.73 | 32.33 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,684 ▲149 | 22.61 ▼0.66 | 632.46 ▼48.84 | 66.74 ▲1.33 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.22 ▲0.04 | 98.17 ▼5.30 | 70.35 ▲24.69 |
YaBlog /wp-admin/options-general.php?page=yablog_settings_disabler | 918 | 2.02 | 24.86 | 26.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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/yablog/yablog.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/yablog/settings_page.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== yablog ===
)
yablog/yablog.php Passed 13 tests
"YaBlog" version 1.6.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
130 characters long description:
Allows administrators to globally disable XML-RPC, new emoji functionality in WordPress 4.2, wp generator and feeds on their site.
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
No dangerous file extensions were detected487 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 3 | 72 | 72 | 250 |
PHP | 3 | 38 | 27 | 237 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 14 | |
▷ Named functions | 14 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.65KB | 0.73KB | 0.00% |