Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▲3.96ms] Passed 4 tests
Server-side resources used by JAMStackPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 41.66 ▼3.04 |
Dashboard /wp-admin | 3.60 ▲0.30 | 51.82 ▲2.61 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 56.48 ▲10.40 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 105.65 ▲8.64 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 44.32 ▲7.62 |
Server storage [IO: ▲1.38MB] [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: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for JAMStackPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 14.47 ▲0.09 | 1.75 ▼0.34 | 39.02 ▼5.72 |
Dashboard /wp-admin | 2,231 ▲54 | 4.99 ▼0.92 | 102.45 ▼13.57 | 37.49 ▼6.15 |
Posts /wp-admin/edit.php | 2,117 ▲28 | 1.99 ▼0.01 | 38.66 ▲5.55 | 36.57 ▲2.01 |
Add New Post /wp-admin/post-new.php | 1,554 ▲18 | 18.25 ▼2.83 | 587.17 ▼96.34 | 55.98 ▲0.78 |
Media Library /wp-admin/upload.php | 1,413 ▲28 | 4.27 ▲0.13 | 94.46 ▼28.94 | 41.08 ▼9.83 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 112× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: option in wp-content/plugins/jamstackpress/src/Plugin/Admin/views/options/contact-notification-email.php on line 3
- > PHP Notice
Undefined variable: option in wp-content/plugins/jamstackpress/src/Plugin/Admin/views/options/add-image-sizes-filter-enabled.php on line 3
- > PHP Notice
Undefined variable: option in wp-content/plugins/jamstackpress/src/Plugin/Admin/views/options/routes-field-enabled.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jamstackpress/src/Plugin/Admin/views/options/successful-contact-message.php:10
- > PHP Fatal error
Uncaught Error: Class 'Noodlehaus\\Writer\\AbstractWriter' not found in wp-content/plugins/jamstackpress/vendor/hassankhan/config/src/Writer/Properties.php:16
- > PHP Notice
Undefined variable: option in wp-content/plugins/jamstackpress/src/Plugin/Admin/views/options/readable-date-field-enabled.php on line 3
- > PHP Notice
Undefined variable: option in wp-content/plugins/jamstackpress/src/Plugin/Admin/views/options/contact-route-enabled.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/jamstackpress/src/Plugin/Admin/views/options/frontend-url.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Noodlehaus\\AbstractConfig' not found in wp-content/plugins/jamstackpress/vendor/hassankhan/config/src/Config.php:22
- > PHP Fatal error
Uncaught Error: Class 'Noodlehaus\\Writer\\AbstractWriter' not found in wp-content/plugins/jamstackpress/vendor/hassankhan/config/src/Writer/Ini.php:15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
7 plugin tags: api, headless, pwa, jamstack, spa...
jamstackpress/jamstackpress.php Passed 13 tests
This is the main PHP file of "JAMStackPress" version 0.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
59 characters long description:
Power-up your WordPress site and get it ready for JAMStack.
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
Success! There were no dangerous files found in this plugin3,970 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 81 | 784 | 2,118 | 3,158 |
JSON | 5 | 0 | 0 | 321 |
Markdown | 6 | 156 | 0 | 291 |
YAML | 4 | 17 | 11 | 99 |
SVG | 1 | 4 | 1 | 54 |
XML | 2 | 0 | 0 | 47 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 6.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 5 | 9.09% |
▷ Concrete classes | 50 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 220 | |
▷ Static methods | 80 | 36.36% |
▷ Public methods | 181 | 82.27% |
▷ Protected methods | 33 | 15.00% |
▷ Private methods | 6 | 2.73% |
Functions | 10 | |
▷ Named functions | 5 | 50.00% |
▷ Anonymous functions | 5 | 50.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 1.25MB with 1.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 58.58KB | 3.14KB | ▼ 94.64% |
assets/icon-256x256.png | 1,067.56KB | 14.89KB | ▼ 98.61% |
assets/screenshot-1.png | 153.08KB | 52.29KB | ▼ 65.85% |