Benchmarks
Plugin footprint 48% 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.92MB] [CPU: ▼29.69ms] Passed 4 tests
Analyzing server-side resources used by StaticPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 45.54 ▲7.41 |
Dashboard /wp-admin | 3.02 ▼0.28 | 24.09 ▼34.10 |
Posts /wp-admin/edit.php | 3.02 ▼0.33 | 25.88 ▼21.47 |
Add New Post /wp-admin/post-new.php | 3.02 ▼2.86 | 27.03 ▼60.89 |
Media Library /wp-admin/upload.php | 3.02 ▼0.20 | 29.36 ▼2.31 |
StaticPress Options /wp-admin/admin.php?page=static-press-options | 3.02 | 24.04 |
StaticPress /wp-admin/admin.php?page=static-press | 3.02 | 23.79 |
Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_urls |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
StaticPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.72 ▲0.12 | 1.73 ▲0.06 | 43.41 ▼7.24 |
Dashboard /wp-admin | 2,227 ▲50 | 5.51 ▼0.18 | 82.59 ▼5.27 | 78.68 ▲39.87 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.97 ▼0.05 | 34.93 ▼5.36 | 32.37 ▼4.37 |
Add New Post /wp-admin/post-new.php | 1,704 ▲175 | 22.46 ▼0.67 | 745.63 ▲83.52 | 65.00 ▲0.52 |
Media Library /wp-admin/upload.php | 1,432 ▲38 | 4.17 ▼0.01 | 98.37 ▲1.30 | 80.99 ▲35.50 |
StaticPress Options /wp-admin/admin.php?page=static-press-options | 873 | 2.03 | 24.22 | 27.75 |
StaticPress /wp-admin/admin.php?page=static-press | 811 | 2.02 | 25.77 | 20.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- The uninstall procedure failed, leaving 1 table in the database
- wp_urls
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=static-press
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=static-press
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=static-press
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/staticpress/plugin.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: static
staticpress/plugin.php 85% from 13 tests
Analyzing the main PHP file in "StaticPress" version 0.4.5
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("staticpress.php" instead of "plugin.php")
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
There were no executable files found in this plugin1,715 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 232 | 84 | 1,579 |
PO File | 3 | 42 | 48 | 136 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 69.25 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 14 | 15.91% |
▷ Public methods | 39 | 44.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 49 | 55.68% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 3 | 20.00% |
▷ Class constants | 12 | 80.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/rebuild32.png | 0.54KB | 0.65KB | 0.00% |
images/menuicon-splite.png | 0.46KB | 0.28KB | ▼ 37.77% |
images/staticpress.png | 0.34KB | 0.20KB | ▼ 41.95% |
images/options32.png | 2.00KB | 1.62KB | ▼ 19.07% |