Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.68ms] Passed 4 tests
This is a short check of server-side resources used by Ninja Pages
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 44.48 ▼6.71 |
Dashboard /wp-admin | 3.36 ▲0.06 | 49.30 ▼1.04 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.34 ▲0.14 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.81 ▼15.12 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.25 ▲3.24 |
Ninja Pages /wp-admin/options-general.php?page=ninja-pages | 3.25 | 33.21 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Ninja Pages
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.44 ▲0.06 | 1.82 ▼0.58 | 38.08 ▼5.45 |
Dashboard /wp-admin | 2,207 ▲19 | 5.81 ▼0.08 | 103.01 ▼13.42 | 42.13 ▼1.49 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.01 | 38.75 ▼0.02 | 35.81 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.63 ▼5.46 | 685.44 ▲69.42 | 54.15 ▲5.42 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.17 ▼0.05 | 98.80 ▼3.73 | 43.38 ▼0.08 |
Ninja Pages /wp-admin/options-general.php?page=ninja-pages | 911 | 2.21 | 26.93 | 27.38 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ninja-page-categories-and-tags/shortcodes.php:73
- > PHP Fatal error
Uncaught Error: Call to undefined function register_setting() in wp-content/plugins/ninja-page-categories-and-tags/basic-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ninja-page-categories-and-tags/basic-functions.php:34
- > 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-page-categories-and-tags/ninja-pages.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ninja-page-categories-and-tags/ninja-pages.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: pages, tags, tag, page, category...
ninja-page-categories-and-tags/ninja-pages.php 92% from 13 tests
The main PHP file in "Ninja Pages" ver. 1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ninja-page-categories-and-tags.php" instead of "ninja-pages.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
No dangerous file extensions were detected853 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 65 | 44 | 409 |
CSS | 1 | 12 | 1 | 397 |
PO File | 1 | 16 | 18 | 47 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/nf-banner-300x250.png | 13.11KB | 5.87KB | ▼ 55.24% |
images/nf-banner-240x400.png | 21.70KB | 9.79KB | ▼ 54.90% |
images/wpnj-logo-wt.png | 10.68KB | 4.48KB | ▼ 58.05% |