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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.52ms] Passed 4 tests
An overview of server-side resources used by LAPDI Featured Posts
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.34 ▼4.55 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.31 ▼7.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.80 ▼3.95 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.58 ▼14.27 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.47 ▲1.68 |
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_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by LAPDI Featured Posts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.23 ▼1.18 | 1.85 ▲0.01 | 39.20 ▼3.68 |
Dashboard /wp-admin | 2,209 ▲21 | 5.82 ▼0.06 | 93.15 ▼23.19 | 39.65 ▼8.51 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 39.69 ▲4.05 | 36.22 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,542 ▲8 | 18.19 ▼5.06 | 595.39 ▼85.05 | 55.50 ▼0.78 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▲0.02 | 94.61 ▼8.29 | 41.73 ▲0.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'TSP_Easy_Dev_Options' not found in wp-content/plugins/tsp-featured-posts/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-featured-posts/tsp-featured-posts.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-featured-posts/TSP_Easy_Dev.config.php on line 9
- > 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-featured-posts/tsp-featured-posts.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/tsp-featured-posts/TSP_Easy_Dev.config.php:16
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/tsp-featured-posts/tsp-featured-posts.php on line 14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: featured posts display gallery slider jquery moving boxes the software people
tsp-featured-posts/tsp-featured-posts.php 85% from 13 tests
The entry point to "LAPDI Featured Posts" version 1.3.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 201 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,725 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 77 | 145 | 545 |
PHP | 3 | 110 | 114 | 526 |
CSS | 4 | 93 | 87 | 407 |
Smarty | 6 | 0 | 0 | 215 |
Markdown | 1 | 13 | 0 | 32 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 9.60 |
▷ 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.19MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/arrows.png | 78.22KB | 1.64KB | ▼ 97.90% |
assets/images/twitter_custom.png | 1.61KB | 1.53KB | ▼ 4.62% |
assets/images/rightshadow.png | 0.14KB | 0.14KB | 0.00% |
assets/images/tsp_icon_25.png | 3.09KB | 1.57KB | ▼ 49.19% |
assets/images/tsp_icon_16.png | 2.31KB | 1.03KB | ▼ 55.38% |