Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.14MB] [CPU: ▼42.64ms] Passed 4 tests
A check of server-side resources used by Advanced Pins
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▼0.63 | 14.94 ▼26.10 |
Dashboard /wp-admin | 2.87 ▼0.43 | 16.97 ▼36.14 |
Posts /wp-admin/edit.php | 2.87 ▼0.49 | 19.02 ▼29.24 |
Add New Post /wp-admin/post-new.php | 2.87 ▼3.02 | 17.83 ▼79.07 |
Media Library /wp-admin/upload.php | 2.87 ▼0.36 | 16.91 ▼19.95 |
Server storage [IO: ▲1.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Pins
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,186 ▲451 | 24.87 ▲10.57 | 8.34 ▲6.52 | 38.50 ▼5.88 |
Dashboard /wp-admin | 2,471 ▲283 | 14.66 ▲9.77 | 284.18 ▲173.83 | 43.50 ▲4.93 |
Posts /wp-admin/edit.php | 2,399 ▲310 | 12.56 ▲10.56 | 144.53 ▲107.31 | 33.37 ▲1.07 |
Add New Post /wp-admin/post-new.php | 6,902 ▲5,374 | 21.34 ▲3.27 | 775.80 ▲138.54 | 35.88 ▼11.53 |
Media Library /wp-admin/upload.php | 1,489 ▲98 | 13.69 ▲9.43 | 137.99 ▲32.71 | 40.83 ▼3.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function register_meta was called incorrectly. When registering a default meta value the data must match the type provided. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function apx\\authorization_check() in wp-content/plugins/advanced-pins/php/frontend.php:8
- > PHP Warning
Use of undefined constant wp_die - assumed 'wp_die' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-pins/php/functions.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function apx\\asset() in wp-content/plugins/advanced-pins/templates/settings-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apx\\get_option() in wp-content/plugins/advanced-pins/templates/metabox.php:39
- > PHP Warning
Use of undefined constant wp_die - assumed 'wp_die' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-pins/php/functions.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function apx\\add_action() in wp-content/plugins/advanced-pins/php/admin.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function apx\\add_action() in wp-content/plugins/advanced-pins/php/pageload.php:6
- > PHP Warning
Use of undefined constant wp_die - assumed 'wp_die' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-pins/php/functions.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function apx\\add_action() in wp-content/plugins/advanced-pins/php/frontend.php:10
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% 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
4 plugin tags: image, pin description, pinterest, seo
advanced-pins/advanced-pins.php 92% from 13 tests
"Advanced Pins" version 0.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected8,128 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 2,056 | 1,957 | 7,471 |
PHP | 8 | 149 | 86 | 581 |
CSS | 3 | 26 | 3 | 76 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 48 | |
▷ Named functions | 43 | 89.58% |
▷ Anonymous functions | 5 | 10.42% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo.png | 75.67KB | 23.83KB | ▼ 68.51% |
assets/badge.png | 9.32KB | 3.21KB | ▼ 65.56% |