Benchmarks
Plugin footprint 83% 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.08MB] [CPU: ▼301.62ms] Passed 4 tests
Analyzing server-side resources used by PI Button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.13 | 58.63 ▲1.46 |
Dashboard /wp-admin | 3.48 ▲0.08 | 38.17 ▲2.77 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 43.40 ▲5.83 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.03 | 94.68 ▼1,211.92 |
Media Library /wp-admin/upload.php | 3.42 ▲0.13 | 25.57 ▲1.22 |
PI Button /wp-admin/admin.php?page=accesspress-pinterest | 3.49 | 25.84 |
Check Premium Version /wp-admin/admin.php?page=appinterest-premium | 3.16 | 17.30 |
Documentation /wp-admin/admin.php?page=appinterest-doclinks | 3.16 | 17.86 |
Server storage [IO: ▲2.88MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_apsp_single_image_pin_widget_free |
widget_apsp_latest_pins_widget_free |
apsp-settings |
widget_apsp_board_widget_free |
widget_apsp_profile_widget_free |
widget_apsp_follow_widget_free |
Browser metrics Passed 4 tests
PI Button: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,969 ▲224 | 18.27 ▲2.73 | 18.62 ▲12.28 | 2.66 ▲0.37 |
Dashboard /wp-admin | 2,937 ▲76 | 6.21 ▲0.04 | 140.94 ▼13.26 | 187.65 ▲22.16 |
Posts /wp-admin/edit.php | 2,693 ▲7 | 3.12 ▼0.12 | 63.31 ▼2.44 | 154.49 ▼51.51 |
Add New Post /wp-admin/post-new.php | 1,777 ▲114 | 21.25 ▲1.73 | 404.94 ▼29.36 | 230.90 ▲64.78 |
Media Library /wp-admin/upload.php | 1,730 ▲35 | 5.56 ▲0.08 | 138.52 ▼14.62 | 245.21 ▲18.73 |
PI Button /wp-admin/admin.php?page=accesspress-pinterest | 3,125 | 8.51 | 207.22 | 206.39 |
Check Premium Version /wp-admin/admin.php?page=appinterest-premium | 2,921 | 17.66 | 567.46 | 277.70 |
Documentation /wp-admin/admin.php?page=appinterest-doclinks | 1,703 | 8.74 | 293.06 | 168.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_apsp_board_widget_free
- widget_apsp_single_image_pin_widget_free
- widget_apsp_profile_widget_free
- widget_apsp_follow_widget_free
- widget_apsp_latest_pins_widget_free
- apsp-settings
Smoke tests 25% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 11× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/accesspress-pinterest/inc/frontend/apsp_share.php
- > /wp-content/plugins/accesspress-pinterest/inc/frontend/latest-pins-shortcode.php
- > /wp-content/plugins/accesspress-pinterest/inc/frontend/pin-widget-shortcode.php
- > /wp-content/plugins/accesspress-pinterest/inc/frontend/profile-shortcode.php
- > /wp-content/plugins/accesspress-pinterest/inc/frontend/follow-shortcode.php
- > /wp-content/plugins/accesspress-pinterest/inc/backend/widget.php
- > /wp-content/plugins/accesspress-pinterest/inc/backend/activation.php
- > /wp-content/plugins/accesspress-pinterest/inc/backend/save-settings.php
- > /wp-content/plugins/accesspress-pinterest/inc/backend/main-page.php
- > /wp-content/plugins/accesspress-pinterest/inc/frontend/board-shortcode.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/accesspress-pinterest/inc/frontend/save_button_shortcode.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accesspress-pinterest/inc/backend/how-to-use.php:1
- > PHP Notice
Trying to get property 'post_title' of non-object in wp-content/plugins/accesspress-pinterest/inc/frontend/save_button_shortcode.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accesspress-pinterest/inc/backend/apsp-about.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=appinterest-premium
- > Javascript (severe) in unknown
https://accesspressthemes.com/wordpress-plugins/accesspress-pinterest-pro/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=appinterest-doclinks
- > Network (severe)
https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
- > GET request to /wp-admin/admin.php?page=appinterest-doclinks
- > Javascript (severe) in unknown
https://accesspressthemes.com/documentation/accesspress-pinterest/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
accesspress-pinterest/accesspress-pinterest.php Passed 13 tests
The principal PHP file in "PI Button" v. 3.3.4 is loaded by WordPress automatically on each request
96 characters long description:
A plugin to add various pinterest widgets and pins to a site with dynamic configuration options.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,686 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 15 | 199 | 218 | 1,498 |
CSS | 3 | 72 | 18 | 457 |
JavaScript | 3 | 8 | 12 | 60 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 24.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
15 PNG files occupy 1.41MB with 0.89MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/upgrade-btn.png | 1.92KB | 0.52KB | ▼ 73.18% |
images/twitter.png | 1.74KB | 0.81KB | ▼ 53.33% |
images/flicker.png | 1.45KB | 0.57KB | ▼ 60.47% |
images/aplite.png | 6.73KB | 3.22KB | ▼ 52.21% |
images/apsp-icon.png | 1.24KB | 0.30KB | ▼ 76.12% |