Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/my-post-list-with-offline-reading/option-page.php+147
syntax error, unexpected end of file
Server metrics [RAM: ▼0.00MB] [CPU: ▼145.88ms] Passed 4 tests
A check of server-side resources used by My Posts List with Offline Browsing
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 34.28 ▲14.26 |
Dashboard /wp-admin | 3.06 ▲0.00 | 45.39 ▼2.09 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 45.48 ▼0.77 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 83.73 ▼578.51 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 31.80 ▼2.16 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for My Posts List with Offline Browsing
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.85 ▲0.17 | 11.55 ▲2.22 | 44.58 ▼5.45 |
Dashboard /wp-admin | 2,973 ▲45 | 5.92 ▼0.32 | 160.57 ▲17.33 | 110.49 ▲2.78 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.01 | 73.29 ▲0.99 | 85.93 ▼4.97 |
Add New Post /wp-admin/post-new.php | 1,683 ▼1,970 | 18.75 ▼0.24 | 429.55 ▼27.42 | 106.51 ▲2.94 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.00 ▼0.04 | 154.95 ▼2.23 | 113.67 ▼7.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/my-post-list-with-offline-reading/mobile/query.php:18
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/my-post-list-with-offline-reading/option-page.php on line 147
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/my-post-list-with-offline-reading/mobile/query.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/my-post-list-with-offline-reading/email_post_list.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-post-list-with-offline-reading/my-posts-list.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
my-post-list-with-offline-reading/my-posts-list.php 85% from 13 tests
This is the main PHP file of "My Posts List with Offline Browsing" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("my-post-list-with-offline-reading.php" instead of "my-posts-list.php")
- Description: The description should be shorter than 140 characters (currently 178 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,164 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 253 | 41 | 461 |
JavaScript | 2 | 133 | 33 | 384 |
CSS | 2 | 83 | 45 | 319 |
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 issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
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 | 10 | |
▷ Named functions | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
mobile/images/touch-icon-iphone.png | 1.72KB | 1.94KB | 0.00% |
img/close.png | 1.75KB | 0.61KB | ▼ 65.39% |
img/star.png | 0.74KB | 0.67KB | ▼ 9.55% |