Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.04MB] [CPU: ▲24.92ms] 75% from 4 tests
This is a short check of server-side resources used by Add Twitter Pixel for Twitter ads
The following require your attention
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.04MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.93 ▲5.48 | 70.09 ▲29.88 |
Dashboard /wp-admin | 8.95 ▲5.65 | 70.37 ▲23.93 |
Posts /wp-admin/edit.php | 8.96 ▲5.60 | 78.90 ▲31.72 |
Add New Post /wp-admin/post-new.php | 9.33 ▲3.45 | 114.48 ▲14.61 |
Media Library /wp-admin/upload.php | 8.95 ▲5.73 | 65.86 ▲31.26 |
Add Twitter Pixel /wp-admin/options-general.php?page=add-twitter-pixel | 8.96 | 61.99 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.95 | 58.67 |
Server storage [IO: ▲3.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 211 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_active_plugins |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
fs_debug_mode |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
fs_accounts |
Browser metrics Passed 4 tests
Add Twitter Pixel for Twitter ads: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲87 | 13.25 ▼1.01 | 1.70 ▼0.14 | 32.49 ▼15.99 |
Dashboard /wp-admin | 2,228 ▲39 | 5.78 ▲0.84 | 112.89 ▼5.08 | 44.98 ▲0.66 |
Posts /wp-admin/edit.php | 2,111 ▲25 | 2.06 ▲0.05 | 36.88 ▼2.61 | 37.39 ▲2.20 |
Add New Post /wp-admin/post-new.php | 1,522 ▼10 | 17.51 ▼5.63 | 659.50 ▲54.46 | 58.78 ▲3.85 |
Media Library /wp-admin/upload.php | 1,410 ▲25 | 4.27 ▲0.06 | 95.51 ▼4.82 | 44.19 ▲0.16 |
Add Twitter Pixel /wp-admin/options-general.php?page=add-twitter-pixel | 1,022 | 1.88 | 27.12 | 95.97 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,085 | 1.72 | 23.22 | 26.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Notice in wp-content/plugins/add-twitter-pixel/vendor/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- fs_accounts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- fs_debug_mode
- widget_recent-comments
- fs_active_plugins
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/add-twitter-pixel/admin/views/notices/support.view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/add-twitter-pixel/admin/views/metabox.view.php:3
- > PHP Fatal error
Uncaught Error: Class 'Pagup\\Twitter\\Core\\Plugin' not found in wp-content/plugins/add-twitter-pixel/admin/views/settings.view.php:4
- > PHP Fatal error
Uncaught Error: Class 'Pagup\\Twitter\\Core\\Plugin' not found in wp-content/plugins/add-twitter-pixel/admin/views/faq.view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/add-twitter-pixel/admin/views/inc/top.view.php:5
- > PHP Fatal error
Uncaught Error: Class 'Pagup\\Twitter\\Controllers\\SettingsController' not found in wp-content/plugins/add-twitter-pixel/admin/Settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/add-twitter-pixel/admin/views/inc/side.view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function Pagup\\Twitter\\Controllers\\add_action() in wp-content/plugins/add-twitter-pixel/admin/controllers/TrackingController.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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Screenshot #2 (Twitter Pixel Settings Page) image missing
add-twitter-pixel/add-twitter-pixel.php 85% from 13 tests
The main file in "Add Twitter Pixel for Twitter ads" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
- Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected34,781 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 142 | 8,230 | 17,479 | 34,389 |
JavaScript | 4 | 37 | 59 | 202 |
CSS | 15 | 15 | 18 | 181 |
JSON | 2 | 0 | 0 | 9 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 74.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 1,314 | |
▷ Static methods | 215 | 16.36% |
▷ Public methods | 922 | 70.17% |
▷ Protected methods | 19 | 1.45% |
▷ Private methods | 373 | 28.39% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/metabox.png | 106.13KB | 44.16KB | ▼ 58.39% |
vendor/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
vendor/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
vendor/freemius/assets/img/add-twitter-pixel.png | 9.16KB | 5.26KB | ▼ 42.58% |