Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.47ms] Passed 4 tests
Analyzing server-side resources used by All Districts News
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.38 ▼11.24 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.63 ▲0.14 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 53.69 ▼1.43 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.75 ▼13.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.64 ▲0.55 |
Districts Code /wp-admin/admin.php?page=districts-code | 3.74 | 33.49 |
All Districts News /wp-admin/admin.php?page=all-districts-news | 3.22 | 33.06 |
Installation /wp-admin/admin.php?page=installation | 3.22 | 31.91 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_all_districts_news |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by All Districts News
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.34 ▼0.01 | 1.70 ▼0.24 | 40.00 ▼4.13 |
Dashboard /wp-admin | 2,213 ▲36 | 5.56 ▼0.03 | 86.46 ▼2.49 | 64.58 ▲26.97 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 1.98 ▼0.01 | 41.41 ▲6.47 | 35.34 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,551 ▲23 | 23.57 ▲0.29 | 737.71 ▲55.01 | 57.79 ▼9.78 |
Media Library /wp-admin/upload.php | 1,433 ▲36 | 4.22 ▲0.06 | 97.15 ▼16.21 | 75.24 ▲28.96 |
Districts Code /wp-admin/admin.php?page=districts-code | 3,739 | 2.00 | 24.16 | 54.26 |
All Districts News /wp-admin/admin.php?page=all-districts-news | 786 | 2.01 | 24.76 | 25.81 |
Installation /wp-admin/admin.php?page=installation | 859 | 1.99 | 24.52 | 26.18 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_all_districts_news
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% 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 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
The following issues need your attention
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/all-districts-news/menu-pages/districts-code.php
- > /wp-content/plugins/all-districts-news/menu-pages/widget.php
- > /wp-content/plugins/all-districts-news/menu-pages/all-districts-news.php
- > /wp-content/plugins/all-districts-news/menu-pages/adn.php
- > /wp-content/plugins/all-districts-news/index.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/all-districts-news/menu-pages/installation.php:25
- > PHP Fatal error
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
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please describe screenshot #2 in all-districts-news/assets to your readme.txt
all-districts-news/index.php 92% from 13 tests
"All Districts News" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("all-districts-news.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,175 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 308 | 42 | 2,175 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.26MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
menu-pages/images/Installation1.png | 46.10KB | 21.85KB | ▼ 52.61% |
menu-pages/images/Installation2.png | 77.71KB | 26.60KB | ▼ 65.77% |
menu-pages/images/Installation4.png | 63.20KB | 19.37KB | ▼ 69.35% |
menu-pages/images/Installation3.png | 81.22KB | 26.81KB | ▼ 66.99% |
menu-pages/images/icon.png | 0.87KB | 0.87KB | ▼ 0.67% |