Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.21ms] Passed 4 tests
A check of server-side resources used by Themify Popup
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 40.88 ▼2.29 |
Dashboard /wp-admin | 3.46 ▲0.16 | 45.20 ▼3.77 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 46.10 ▼0.46 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 94.48 ▲4.06 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.71 ▲1.70 |
Manage Popups /wp-admin/edit.php?post_type=themify_popup | 3.47 | 37.48 |
Add New /wp-admin/post-new.php?post_type=themify_popup | 3.57 | 54.00 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 134 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Themify Popup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲239 | 13.93 ▼0.81 | 8.98 ▲7.14 | 40.76 ▼7.43 |
Dashboard /wp-admin | 2,233 ▲45 | 4.86 ▼1.15 | 105.11 ▼11.04 | 39.07 ▼6.73 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.00 ▼0.01 | 33.97 ▼12.46 | 33.99 ▼2.46 |
Add New Post /wp-admin/post-new.php | 6,254 ▲4,740 | 18.93 ▲1.18 | 887.73 ▲186.34 | 33.92 ▼22.20 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.24 ▲0.06 | 101.82 ▼2.03 | 43.07 ▼3.78 |
Manage Popups /wp-admin/edit.php?post_type=themify_popup | 1,627 | 1.99 | 32.42 | 30.61 |
Add New /wp-admin/post-new.php?post_type=themify_popup | 3,299 | 8.13 | 241.96 | 86.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/themify-popup/themify-popup.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/themify-popup/includes/tinymce.php:6
- > PHP Notice
Undefined variable: popups in wp-content/plugins/themify-popup/views/render.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Themify_Builder_Layouts_Provider' not found in wp-content/plugins/themify-popup/includes/themify-builder-popup-layout-provider.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/themify-popup/views/config.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/themify-popup/sample/sample.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function themify_popup_check() in wp-content/plugins/themify-popup/views/styles.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/themify-popup/views/single-popup.php:8
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
themify-popup/themify-popup.php 85% from 13 tests
The principal PHP file in "Themify Popup" v. 1.3.9 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 259 characters long)
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected8,730 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 476 | 550 | 3,559 |
JavaScript | 26 | 352 | 268 | 2,706 |
CSS | 14 | 51 | 86 | 2,464 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 51.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 172.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 54.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 | 78 | |
▷ Static methods | 32 | 41.03% |
▷ Public methods | 65 | 83.33% |
▷ Protected methods | 8 | 10.26% |
▷ Private methods | 5 | 6.41% |
Functions | 54 | |
▷ Named functions | 53 | 98.15% |
▷ Anonymous functions | 1 | 1.85% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 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
5 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/themify-metabox/img/jquery.minicolors.png | 24.58KB | 27.69KB | 0.00% |
includes/themify-metabox/img/ddbtn-blank.png | 0.07KB | 0.09KB | 0.00% |
includes/themify-metabox/img/icon-delete.png | 0.45KB | 0.46KB | 0.00% |
includes/themify-metabox/img/ddbtn-check.png | 0.14KB | 0.23KB | 0.00% |
includes/themify-metabox/img/ddbtn-cross.png | 0.18KB | 0.27KB | 0.00% |