Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.20MB] [CPU: ▼15.15ms] Passed 4 tests
A check of server-side resources used by Amp Stories for Wordpress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▼0.54 | 27.74 ▼20.19 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.28 ▼0.11 |
Posts /wp-admin/edit.php | 3.22 ▼0.14 | 32.84 ▼15.96 |
Add New Post /wp-admin/post-new.php | 5.70 ▼0.19 | 78.94 ▼24.34 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 42.30 ▲7.23 |
Server storage [IO: ▲2.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 197 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Amp Stories for Wordpress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.24 ▼0.33 | 1.89 ▼0.18 | 47.48 ▲2.53 |
Dashboard /wp-admin | 2,197 ▲23 | 5.58 ▼0.02 | 86.30 ▼4.20 | 35.70 ▼1.27 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.99 ▼0.04 | 36.69 ▼3.11 | 32.81 ▼6.70 |
Add New Post /wp-admin/post-new.php | 8,545 ▲7,019 | 28.28 ▲4.63 | 1,028.33 ▲378.83 | 61.45 ▲3.49 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.31 ▲0.12 | 94.79 ▼5.50 | 43.43 ▼2.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 115× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/amp-story/vafpress/config/dependencies.php on line 94
- > PHP Fatal error
Uncaught Error: Class 'VP_View' not found in wp-content/plugins/amp-story/vafpress/views/control/sorter.php:1
- > PHP Notice
Undefined variable: set in wp-content/plugins/amp-story/vafpress/views/option/set.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'VP_Option_Control_Group' not found in wp-content/plugins/amp-story/vafpress/classes/option/control/group/menu.php:3
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_FieldMultiImage' not found in wp-content/plugins/amp-story/vafpress/classes/control/field/radioimage.php:3
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_FieldMulti' not found in wp-content/plugins/amp-story/vafpress/classes/control/field/sorter.php:3
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/amp-story/vafpress/config/dependencies.php on line 172
- > PHP Fatal error
Uncaught Error: Class 'VP_View' not found in wp-content/plugins/amp-story/vafpress/views/control/date.php:1
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/amp-story/vafpress/config/dependencies.php on line 176
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/amp-story/vafpress/config/messages.php:13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Donate link: Please fix this invalid URI: "paypal.me/ampstories/10"
amp-story/amp-story.php Passed 13 tests
The entry point to "Amp Stories for Wordpress" version 1.3.2 is a PHP file that has certain tags in its header comment area
104 characters long description:
Amp Stories for Wordpress. Amp Story allows you to create a visual storytelling format for the open web.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected15,768 lines of code in 156 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 91 | 2,036 | 2,303 | 8,996 |
CSS | 14 | 154 | 176 | 3,309 |
JavaScript | 47 | 447 | 298 | 2,959 |
SVG | 1 | 0 | 0 | 414 |
Markdown | 2 | 31 | 0 | 89 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 21.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 4 | 7.14% |
▷ Concrete classes | 52 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 505 | |
▷ Static methods | 89 | 17.62% |
▷ Public methods | 472 | 93.47% |
▷ Protected methods | 19 | 3.76% |
▷ Private methods | 14 | 2.77% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 33 | 91.67% |
▷ Class constants | 3 | 8.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vafpress/public/img/vp-logo.png | 1.94KB | 0.66KB | ▼ 65.94% |
vafpress/public/img/vp_shortcode_icon_sprite.png | 1.55KB | 0.42KB | ▼ 73.10% |
vafpress/public/img/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
vafpress/public/img/bootstrap-colorpicker/saturation.png | 8.61KB | 5.13KB | ▼ 40.41% |
vafpress/public/img/vp-sprite.png | 12.79KB | 4.90KB | ▼ 61.71% |