Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/popupthis/popupThis.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; popupThis has a deprecated constructor
Server metrics [RAM: ▼1.96MB] [CPU: ▼59.75ms] Passed 4 tests
A check of server-side resources used by PopupThis
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 6.03 ▼34.29 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.85 ▼47.36 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.70 ▼59.71 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.12 ▼97.64 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.71 ▼30.08 |
Server storage [IO: ▲0.08MB] [DB: ▲0.33MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by PopupThis
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲152 | 13.84 ▲0.64 | 8.26 ▲6.41 | 42.57 ▲2.81 |
Dashboard /wp-admin | 2,208 ▼1 | 4.88 ▼0.99 | 108.03 ▼2.52 | 42.85 ▲0.85 |
Posts /wp-admin/edit.php | 2,094 ▲2 | 2.01 ▼0.02 | 39.31 ▼1.18 | 35.51 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 23.24 ▲5.55 | 601.34 ▼33.09 | 57.31 ▲3.47 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.26 ▲0.04 | 105.76 ▲8.71 | 44.60 ▲2.80 |
Uninstaller [IO: ✅] [DB: ▲0.33MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the PopupthisCSS handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/popupthis/popupThis.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: popup, fancybox, lighbox
popupthis/popupThis.php 92% from 13 tests
"PopupThis" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("popupthis.php" instead of "popupThis.php")
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
No dangerous file extensions were detected442 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 54 | 12 | 306 |
JavaScript | 3 | 11 | 18 | 78 |
PHP | 1 | 22 | 20 | 49 |
Markdown | 1 | 6 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
20 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/fancy_loading.png | 9.96KB | 6.30KB | ▼ 36.67% |
img/fancybox-y.png | 0.17KB | 0.24KB | 0.00% |
img/fancy_shadow_ne.png | 0.34KB | 0.48KB | 0.00% |
img/fancy_title_main.png | 0.09KB | 0.14KB | 0.00% |
img/fancy_shadow_e.png | 0.10KB | 0.18KB | 0.00% |