Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼7.82ms] Passed 4 tests
Server-side resources used by AT News Scroller
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 45.13 ▼4.12 |
Dashboard /wp-admin | 3.74 ▲0.39 | 55.00 ▼5.15 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 45.06 ▼9.05 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 85.61 ▼12.96 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 37.91 ▲4.09 |
Install Plugins /wp-admin/plugins.php?page=install-required-plugins | 3.76 | 34.16 |
Server storage [IO: ▲3.70MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 214 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AT News Scroller
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲168 | 13.66 ▼0.51 | 6.09 ▲4.34 | 42.47 ▲0.87 |
Dashboard /wp-admin | 2,237 ▲46 | 5.87 ▲0.96 | 110.98 ▲8.65 | 47.15 ▲4.14 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.05 ▲0.01 | 35.89 ▼5.08 | 39.83 ▲2.47 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 17.49 ▼5.82 | 634.08 ▼58.19 | 55.61 ▼6.28 |
Media Library /wp-admin/upload.php | 1,430 ▲45 | 4.41 ▲0.21 | 97.29 ▼4.30 | 45.45 ▲0.24 |
Install Plugins /wp-admin/plugins.php?page=install-required-plugins | 959 | 2.06 | 26.67 | 30.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/at-news-scroller/includes/init.js.php
- > /wp-content/plugins/at-news-scroller/plugin.php
- > /wp-content/plugins/at-news-scroller/trunk/includes/init.js.php
- > /wp-content/plugins/at-news-scroller/trunk/includes/style.php
- > /wp-content/plugins/at-news-scroller/trunk/plugin.php
- > /wp-content/plugins/at-news-scroller/includes/style.php
- 138× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/at-news-scroller/trunk/includes/style.php on line 65
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/at-news-scroller/includes/style.php on line 14
- > PHP Notice
Undefined variable: data in wp-content/plugins/at-news-scroller/includes/style.php on line 14
- > PHP Notice
Undefined variable: at_news_scroller in wp-content/plugins/at-news-scroller/trunk/includes/ticker.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_recent_posts() in wp-content/plugins/at-news-scroller/trunk/includes/ticker.php:12
- > PHP Notice
Undefined variable: data in wp-content/plugins/at-news-scroller/trunk/includes/style.php on line 14
- > PHP Notice
Undefined variable: data in wp-content/plugins/at-news-scroller/trunk/includes/style.php on line 29
- > PHP Notice
Undefined variable: data in wp-content/plugins/at-news-scroller/includes/style.php on line 42
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/at-news-scroller/trunk/includes/style.php on line 54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/at-news-scroller/trunk/includes/functions.php:32
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% 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
4 plugin tags: news, latest post scroller, scroll, ticker
at-news-scroller/plugin.php 92% from 13 tests
The main PHP script in "AT News Scroller" version 0.4 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("at-news-scroller.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin6,507 lines of code in 101 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 83 | 664 | 633 | 3,405 |
PHP | 12 | 547 | 1,556 | 2,216 |
CSS | 3 | 151 | 20 | 715 |
Markdown | 1 | 34 | 0 | 80 |
Bourne Shell | 1 | 24 | 0 | 55 |
JSON | 1 | 0 | 0 | 36 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 35.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 192 | |
▷ Static methods | 12 | 6.25% |
▷ Public methods | 152 | 79.17% |
▷ Protected methods | 40 | 20.83% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 4 | 40.00% |
▷ Class constants | 6 | 60.00% |
▷ Public constants | 6 | 100.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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/extensions/extensions/vendor_support/vendor/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
trunk/includes/extensions/extensions/vendor_support/vendor/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
includes/extensions/extensions/vendor_support/vendor/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
trunk/includes/extensions/extensions/vendor_support/vendor/select2/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |