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.02MB] [CPU: ▼8.01ms] Passed 4 tests
Analyzing server-side resources used by Latest News Marquee
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.64 ▼2.03 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.20 ▲0.01 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 50.79 ▼7.19 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.86 ▼22.81 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.97 ▲7.93 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Latest News Marquee
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲128 | 13.52 ▼0.88 | 8.14 ▲6.37 | 37.72 ▼2.61 |
Dashboard /wp-admin | 2,213 ▲33 | 5.67 ▼0.14 | 81.80 ▼12.50 | 74.88 ▲30.66 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.98 ▼0.01 | 39.16 ▼1.43 | 36.85 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,692 ▲163 | 21.76 ▼1.29 | 666.86 ▼21.18 | 52.20 ▲1.19 |
Media Library /wp-admin/upload.php | 1,418 ▲15 | 4.13 ▼0.07 | 102.03 ▲8.17 | 59.30 ▲12.59 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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 0% 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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/latest-news-marquee/latest-news-marquee.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(LNM_PLUGIN_PATH/inc/libs/simple_html_dom.php): failed to open stream: No such file or directory in wp-content/plugins/latest-news-marquee/view/lnm-front.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'LNM_PLUGIN_PATH/inc/libs/simple_html_dom.php' (include_path='.:/usr/share/php') in wp-content/plugins/latest-news-marquee/view/lnm-front.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/latest-news-marquee/admin/lnm-admin.php:6
- > PHP Warning
Use of undefined constant LNM_PLUGIN_PATH - assumed 'LNM_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/latest-news-marquee/view/lnm-front.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (lnm-01.png show the plugin setting menu), #2 (lnm-03.png describe, how to customise look of latest news marquee and add label for latest news.), #3 (lnm-04.png show, how to write shortcode), #4 (lnm-05.png show the result of shortcode in blog/website.)
latest-news-marquee/latest-news-marquee.php 92% from 13 tests
Analyzing the main PHP file in "Latest News Marquee" version 1.0
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 165 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,517 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 242 | 270 | 1,490 |
JavaScript | 2 | 2 | 5 | 16 |
CSS | 1 | 1 | 0 | 11 |
PHP code Passed 2 tests
A brief analysis 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.48 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 105 | |
▷ Static methods | 3 | 2.86% |
▷ Public methods | 85 | 80.95% |
▷ Protected methods | 16 | 15.24% |
▷ Private methods | 4 | 3.81% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 25 | |
▷ Global constants | 25 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/lnm.png | 0.61KB | 0.42KB | ▼ 31.21% |