Benchmarks
Plugin footprint 65% 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: ▲5.06MB] [CPU: ▲27.99ms] 75% from 4 tests
A check of server-side resources used by Add Pinterest conversion tags for Pinterest Ads + Site verification
It is recommended to improve the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.06MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.95 ▲5.48 | 64.13 ▲22.81 |
Dashboard /wp-admin | 8.97 ▲5.66 | 74.10 ▲28.80 |
Posts /wp-admin/edit.php | 8.97 ▲5.61 | 75.94 ▲28.85 |
Add New Post /wp-admin/post-new.php | 9.39 ▲3.50 | 128.50 ▲38.61 |
Media Library /wp-admin/upload.php | 8.97 ▲5.73 | 67.06 ▲31.49 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.97 | 68.85 |
Server storage [IO: ▲3.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 231 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
can_compress_scripts |
fs_debug_mode |
fs_accounts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add Pinterest conversion tags for Pinterest Ads + Site verification
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲87 | 13.64 ▼0.79 | 4.72 ▲2.15 | 31.99 ▼15.44 |
Dashboard /wp-admin | 2,250 ▲62 | 4.90 ▼0.10 | 111.08 ▼9.96 | 57.93 ▲19.15 |
Posts /wp-admin/edit.php | 2,136 ▲44 | 2.09 ▲0.09 | 36.86 ▼3.03 | 50.66 ▲14.77 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 22.98 ▲0.02 | 688.33 ▲5.55 | 52.22 ▼4.39 |
Media Library /wp-admin/upload.php | 1,435 ▲50 | 4.32 ▼0.00 | 100.11 ▼14.12 | 56.22 ▲5.54 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,107 | 1.76 | 26.52 | 43.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/add-pinterest-conversion-tags/vendor/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- fs_debug_mode
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- fs_active_plugins
- theysaidso_admin_options
- can_compress_scripts
- fs_accounts
- widget_theysaidso_widget
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/add-pinterest-conversion-tags/admin/views/recommendations.view.php:5
- > PHP Fatal error
Uncaught Error: Class 'Pagup\\Pctag\\Controllers\\SettingsController' not found in wp-content/plugins/add-pinterest-conversion-tags/admin/Settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function Pagup\\Pctag\\Controllers\\add_action() in wp-content/plugins/add-pinterest-conversion-tags/admin/controllers/TrackingController.php:10
- > PHP Fatal error
Uncaught Error: Class 'Pagup\\Pctag\\Core\\Plugin' not found in wp-content/plugins/add-pinterest-conversion-tags/admin/views/faq.view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/add-pinterest-conversion-tags/admin/views/metabox.view.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/add-pinterest-conversion-tags/admin/views/inc/side.view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/add-pinterest-conversion-tags/admin/views/inc/top.view.php:2
- > PHP Fatal error
Uncaught Error: Class 'Pagup\\Pctag\\Core\\Plugin' not found in wp-content/plugins/add-pinterest-conversion-tags/admin/views/settings.view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/add-pinterest-conversion-tags/admin/views/notices/support.view.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=freemius
- > Javascript (severe) in unknown
/wp-content/plugins/add-pinterest-conversion-tags/admin/assets/app.js?ver=1677444562 33:17 Uncaught ReferenceError: data is not defined
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: A description for screenshot #3 is required in add-pinterest-conversion-tags/assets to your readme.txt
add-pinterest-conversion-tags/pinterest-conversion-tag.php 85% from 13 tests
The principal PHP file in "Add Pinterest conversion tags for Pinterest Ads + Site verification" v. 1.2.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("add-pinterest-conversion-tags.php" instead of "pinterest-conversion-tag.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin35,529 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 143 | 8,359 | 17,459 | 34,707 |
CSS | 14 | 89 | 21 | 525 |
JavaScript | 7 | 45 | 67 | 289 |
JSON | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 73.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 2 | 3.23% |
▷ Concrete classes | 60 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 1,325 | |
▷ Static methods | 219 | 16.53% |
▷ Public methods | 930 | 70.19% |
▷ Protected methods | 22 | 1.66% |
▷ Private methods | 373 | 28.15% |
Functions | 105 | |
▷ Named functions | 103 | 98.10% |
▷ Anonymous functions | 2 | 1.90% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.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
14 PNG files occupy 0.35MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/imgs/p12.png | 16.41KB | 7.67KB | ▼ 53.24% |
admin/assets/imgs/p04.png | 29.72KB | 14.09KB | ▼ 52.59% |
vendor/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/assets/imgs/p02.png | 2.50KB | 0.65KB | ▼ 74.01% |
admin/assets/imgs/p10.png | 8.64KB | 4.61KB | ▼ 46.68% |