Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/moby-blog/models/post.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; RES_JSON_API_Post has a deprecated constructor
Server metrics [RAM: ▼1.65MB] [CPU: ▼54.32ms] Passed 4 tests
An overview of server-side resources used by Moby Blog
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.33 ▼1.12 | 6.84 ▼38.53 |
Dashboard /wp-admin | 2.35 ▼0.95 | 6.80 ▼40.65 |
Posts /wp-admin/edit.php | 2.36 ▼1.00 | 6.47 ▼46.09 |
Add New Post /wp-admin/post-new.php | 2.35 ▼3.53 | 8.64 ▼92.02 |
Media Library /wp-admin/upload.php | 2.35 ▼0.87 | 8.42 ▼26.09 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Moby Blog
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲204 | 14.02 ▼0.39 | 16.67 ▲14.39 | 43.46 ▼5.17 |
Dashboard /wp-admin | 2,222 ▲34 | 4.84 ▼1.04 | 97.84 ▼2.49 | 82.51 ▲40.13 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 1.98 ▼0.07 | 35.07 ▼6.49 | 35.43 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,679 ▲137 | 22.40 ▲4.24 | 699.03 ▲77.68 | 57.21 ▼0.97 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.24 ▲0.05 | 97.22 ▼1.37 | 74.91 ▲30.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/moby-blog/models/post.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; RES_JSON_API_Post has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: android, mobile app, mobyblog, api restfull, windows phone...
moby-blog/res-json-api.php 85% from 13 tests
"Moby Blog" version 1.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("moby-blog.php" instead of "res-json-api.php")
- Description: Keep the plugin description shorter than 140 characters (currently 512 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,549 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 515 | 836 | 3,259 |
CSS | 2 | 35 | 2 | 160 |
PO File | 1 | 20 | 22 | 68 |
JavaScript | 3 | 6 | 6 | 62 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 30.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 127.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 142 | |
▷ Static methods | 1 | 0.70% |
▷ Public methods | 130 | 91.55% |
▷ Protected methods | 6 | 4.23% |
▷ Private methods | 6 | 4.23% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 8 | 80.00% |
▷ Class constants | 2 | 20.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.46MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 199.56KB | 66.96KB | ▼ 66.45% |
assets/back.png | 0.22KB | 0.20KB | ▼ 8.77% |
singletons/data/mobyblog-128.png | 6.26KB | 6.37KB | 0.00% |
singletons/data/mobyblog-20.png | 1.28KB | 1.26KB | ▼ 1.38% |
screenshot.png | 132.70KB | 52.99KB | ▼ 60.07% |