Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲1.15ms] Passed 4 tests
This is a short check of server-side resources used by StaticPress Auto Builder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.44 ▼2.15 |
Dashboard /wp-admin | 3.39 ▲0.08 | 47.13 ▲2.37 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.43 ▲0.90 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 97.11 ▲3.48 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.25 ▲5.89 |
Auto Builder /wp-admin/admin.php?page=static-press-cron-options | 3.27 | 40.15 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
staticpress_cron_option |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for StaticPress Auto Builder
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 13.29 ▼1.45 | 1.73 ▼0.37 | 43.08 ▲5.82 |
Dashboard /wp-admin | 2,214 ▲26 | 4.86 ▼1.02 | 110.09 ▼4.07 | 40.41 ▼3.98 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.01 ▼0.04 | 40.11 ▲4.61 | 36.83 ▲5.76 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 23.28 ▲5.75 | 583.90 ▼120.07 | 48.83 ▼7.60 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.24 ▼0.04 | 94.72 ▼8.03 | 42.45 ▼3.27 |
Auto Builder /wp-admin/admin.php?page=static-press-cron-options | 874 | 2.21 | 26.14 | 30.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cron-staticpress/includes/StaticPress_Cron.class.php:278
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cron-staticpress/includes/StaticPress_Cron.class.php:278
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: A description for screenshot #2 is missing in cron-staticpress/assets to your readme.txt
cron-staticpress/plugin.php 92% from 13 tests
Analyzing the main PHP file in "StaticPress Auto Builder" version 1.1.2
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cron-staticpress.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin295 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 38 | 78 | 295 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin