Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/another-one-tips-maker/modules/widgets.php+76
Function create_function() is deprecated
Server metrics [RAM: ▼2.10MB] [CPU: ▼61.10ms] Passed 4 tests
Server-side resources used by Another One Tips Maker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.55 | 5.19 ▼49.29 |
Dashboard /wp-admin | 2.20 ▼1.43 | 6.17 ▼56.46 |
Posts /wp-admin/edit.php | 2.20 ▼1.48 | 7.12 ▼45.08 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.95 | 5.91 ▼93.58 |
Media Library /wp-admin/upload.php | 2.20 ▼1.29 | 7.05 ▼30.08 |
All Tips /wp-admin/edit.php?post_type=tip | 2.20 | 7.00 |
Category /wp-admin/edit-tags.php?taxonomy=tip_category&post_type=tip | 2.20 | 7.88 |
Add New /wp-admin/post-new.php?post_type=tip | 2.20 | 6.16 |
Server storage [IO: ▲2.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 93 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_tips_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Another One Tips Maker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,485 ▲724 | 17.23 ▲3.03 | 15.87 ▲13.86 | 37.34 ▼8.32 |
Dashboard /wp-admin | 2,385 ▲211 | 6.39 ▲0.75 | 114.34 ▲14.51 | 48.87 ▲4.76 |
Posts /wp-admin/edit.php | 2,316 ▲219 | 3.58 ▲1.54 | 50.46 ▲13.58 | 31.56 ▼6.34 |
Add New Post /wp-admin/post-new.php | 1,553 ▲22 | 17.70 ▼5.47 | 661.54 ▼4.33 | 40.43 ▼9.10 |
Media Library /wp-admin/upload.php | 1,451 ▲54 | 4.35 ▲0.13 | 82.99 ▼27.09 | 44.63 ▲1.82 |
All Tips /wp-admin/edit.php?post_type=tip | 1,321 | 3.50 | 48.43 | 32.55 |
Category /wp-admin/edit-tags.php?taxonomy=tip_category&post_type=tip | 1,579 | 3.41 | 41.76 | 33.25 |
Add New /wp-admin/post-new.php?post_type=tip | 4,818 | 4.14 | 77.77 | 46.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/another-one-tips-maker/modules/widgets.php+76
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_tips_widget
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=tip
- > Deprecated in wp-content/plugins/another-one-tips-maker/modules/widgets.php+76
Function create_function() is deprecated
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=tip
- > Warning in wp-content/plugins/another-one-tips-maker/modules/hooks.php+95
Use of undefined constant ubl_add_tinymce - assumed 'ubl_add_tinymce' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/post-new.php?post_type=tip
- > Notice in wp-content/plugins/another-one-tips-maker/modules/meta_box.php+330
Undefined index: post_type
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/another-one-tips-maker/modules/editor_plugin.js.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/another-one-tips-maker/modules/shortcodes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/another-one-tips-maker/modules/ajax.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/another-one-tips-maker/modules/meta_box.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/another-one-tips-maker/modules/hooks.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/another-one-tips-maker/modules/shortcodes.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/another-one-tips-maker/modules/cpt.php:70
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/another-one-tips-maker/modules/widgets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/another-one-tips-maker/modules/scripts.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=tip
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/another-one-tips-maker/modules/js/admin.js?ver=1.0:36:25)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=tip
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Contributors: The plugin contributors field is missing
another-one-tips-maker/wp-tipbox-sale.php 92% from 13 tests
The principal PHP file in "Another One Tips Maker" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("another-one-tips-maker.php" instead of "wp-tipbox-sale.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin28,213 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 16 | 1,203 | 396 | 20,085 |
JavaScript | 9 | 1,232 | 624 | 4,393 |
Sass | 13 | 19 | 22 | 1,158 |
LESS | 13 | 19 | 31 | 1,149 |
SVG | 2 | 0 | 0 | 733 |
PHP | 10 | 167 | 30 | 686 |
HTML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
13 PNG files occupy 0.11MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/images/see-it.png | 9.08KB | 2.14KB | ▼ 76.44% |
modules/inc/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
modules/inc/assets_/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
modules/images/heart.png | 7.68KB | 4.22KB | ▼ 45.09% |
modules/inc/assets_/img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |