Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/ninja-announcements/includes/widget.class.php+254
Function create_function() is deprecated
Server metrics [RAM: ▼1.95MB] [CPU: ▼56.53ms] Passed 4 tests
This is a short check of server-side resources used by Ninja Announcements Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 5.42 ▼35.54 |
Dashboard /wp-admin | 2.06 ▼1.25 | 5.16 ▼40.81 |
Posts /wp-admin/edit.php | 2.06 ▼1.30 | 5.84 ▼44.12 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.83 | 5.78 ▼105.63 |
Media Library /wp-admin/upload.php | 2.06 ▼1.17 | 5.40 ▼28.60 |
Add New /wp-admin/post-new.php?post_type=ninja_annc | 2.06 | 5.16 |
Ninja Announcements /wp-admin/edit.php?post_type=ninja_annc | 2.06 | 6.56 |
Plugin Settings /wp-admin/edit.php?post_type=ninja_annc&page=plugin_settings | 2.06 | 4.87 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
ninja_annc_settings |
widget_recent-posts |
widget_ninja_annc_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ninja Announcements Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.23 ▼1.14 | 1.53 ▼0.76 | 41.67 ▼3.62 |
Dashboard /wp-admin | 2,239 ▲48 | 5.10 ▲0.16 | 100.83 ▼1.37 | 67.66 ▲23.47 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.02 ▲0.01 | 38.26 ▼2.79 | 35.28 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,703 ▲184 | 24.55 ▲1.35 | 730.39 ▲133.34 | 77.59 ▲29.81 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.16 ▼0.08 | 106.12 ▲10.65 | 81.51 ▲37.39 |
Add New /wp-admin/post-new.php?post_type=ninja_annc | 2,684 | 7.97 | 187.64 | 141.49 |
Ninja Announcements /wp-admin/edit.php?post_type=ninja_annc | 1,110 | 1.93 | 35.25 | 36.79 |
Plugin Settings /wp-admin/edit.php?post_type=ninja_annc&page=plugin_settings | 870 | 2.07 | 27.18 | 30.46 |
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
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/ninja-announcements/includes/widget.class.php+254
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-posts
- db_upgraded
- ninja_annc_settings
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_ninja_annc_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ninja_annc&page=plugin_settings
- > Deprecated in wp-content/plugins/ninja-announcements/includes/widget.class.php+254
Function create_function() is deprecated
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ninja_annc&page=plugin_settings
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Ninja_Annc_Widget is deprecated since version 4.3.0! Use __construct() instead.
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
Please fix the following
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ninja-announcements/includes/cpt.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ninja-announcements/includes/meta-boxes.php:183
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ninja-announcements/includes/columns.php:3
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ninja-announcements/ninja_annc.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ninja-announcements/includes/display.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ninja-announcements/includes/plugin-settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ninja-announcements/includes/ajax-functions.php:2
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ninja-announcements/ninja_annc.php on line 30
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ninja-announcements/includes/widget.class.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ninja-announcements/includes/scripts-styles.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=ninja_annc
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: a(...).live is not a function" "TypeError: a(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ninja-announcements/js/min/ninja_annc_admin.min.js?ver=6.3.1:5:166)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&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&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=ninja_annc
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: a(...).live is not a function
Optimizations
Plugin configuration 93% 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: announcement, alert, notice
ninja-announcements/ninja_annc.php 85% from 13 tests
The entry point to "Ninja Announcements Lite" version 2.3.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ninja-announcements.php" instead of "ninja_annc.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 452 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,379 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 132 | 91 | 2,068 |
CSS | 5 | 70 | 51 | 672 |
JavaScript | 5 | 126 | 120 | 639 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 74.00 |
▷ Minimum class complexity | 74.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 19.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.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 | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
css/smoothness/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
css/smoothness/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |