Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.29ms] Passed 4 tests
Server-side resources used by Offline Pages
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.59 ▼1.67 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.56 ▼1.43 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.98 ▼1.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.85 ▲1.92 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.96 ▼0.14 |
Offline /wp-admin/options-general.php?page=offline-pages | 3.21 | 30.44 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 9 new options
New WordPress options |
---|
opwp_allow_author_pages |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
opwp_allow_category_pages |
theysaidso_admin_options |
opwp_allow_tag_pages |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Offline Pages
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲17 | 13.24 ▼0.01 | 1.61 ▼2.89 | 43.98 ▼1.17 |
Dashboard /wp-admin | 2,213 ▲7 | 5.80 ▲0.94 | 93.34 ▼17.97 | 39.49 ▲0.90 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.00 | 40.92 ▲1.35 | 34.09 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.23 ▼0.14 | 684.11 ▼4.51 | 51.91 ▲3.59 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.14 ▼0.13 | 99.15 ▼1.08 | 45.45 ▲1.15 |
Offline /wp-admin/options-general.php?page=offline-pages | 906 | 2.05 | 23.64 | 31.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- opwp_allow_author_pages
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- opwp_allow_tag_pages
- theysaidso_admin_options
- opwp_allow_category_pages
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/offline-pages/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% 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
Attributes that require attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
offline-pages/index.php 85% from 13 tests
The main file in "Offline Pages" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("offline-pages.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 403 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected161 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 52 | 161 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
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 | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin