Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▲5.53ms] Passed 4 tests
An overview of server-side resources used by LAPDI On This Day
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 45.90 ▲4.92 |
Dashboard /wp-admin | 3.31 ▲0.01 | 67.07 ▲15.29 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.71 ▲3.33 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 103.18 ▲6.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 43.92 ▲7.85 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for LAPDI On This Day
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.59 ▼0.06 | 2.26 ▲0.37 | 61.18 ▲17.97 |
Dashboard /wp-admin | 2,206 ▲18 | 4.82 ▼0.26 | 123.56 ▲7.96 | 46.80 ▲1.15 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.03 ▲0.06 | 48.34 ▲12.30 | 49.89 ▲14.84 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 20.82 ▲2.37 | 750.36 ▲90.62 | 55.12 ▲5.44 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.10 | 109.49 ▼2.51 | 47.43 ▲1.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
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
Good news, no errors were detected
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
The following issues need your attention
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/tsp-on-this-day/tsp-on-this-day.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'TSP_Easy_Dev_Options' not found in wp-content/plugins/tsp-on-this-day/TSP_Easy_Dev.extend.php:12
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/tsp-on-this-day/tsp-on-this-day.php on line 14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tsp-on-this-day/tsp-on-this-day.php on line 14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/tsp-on-this-day/TSP_Easy_Dev.config.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/tsp-on-this-day/TSP_Easy_Dev.config.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
1 plugin tags: on this day display gallery slider jquery moving boxes the software people
tsp-on-this-day/tsp-on-this-day.php 85% from 13 tests
"LAPDI On This Day" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 215 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin1,719 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 77 | 145 | 545 |
PHP | 3 | 114 | 116 | 520 |
CSS | 4 | 93 | 87 | 407 |
Smarty | 6 | 0 | 0 | 215 |
Markdown | 1 | 13 | 0 | 32 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 9.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 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 | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
9 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/leftshadow.png | 0.15KB | 0.14KB | ▼ 3.92% |
assets/images/arrows.png | 78.22KB | 1.64KB | ▼ 97.90% |
assets/images/tsp_icon.png | 58.61KB | 2.59KB | ▼ 95.58% |
assets/images/twitter_custom.png | 1.61KB | 1.53KB | ▼ 4.62% |
assets/images/tsp_icon_25.png | 3.09KB | 1.57KB | ▼ 49.19% |