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
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.80ms] Passed 4 tests
An overview of server-side resources used by News Wall
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.79 ▼0.51 |
Dashboard /wp-admin | 3.38 ▲0.07 | 53.45 ▲1.08 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.76 ▲0.74 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 93.17 ▲5.11 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.16 ▲1.88 |
Help and introduction /wp-admin/admin.php?page=nw_help | 3.26 | 31.82 |
Settings /wp-admin/admin.php?page=nw_options | 3.27 | 31.52 |
News /wp-admin/admin.php?page=nw_newslist_page | 3.25 | 32.70 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 20 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_newswalloptions |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for News Wall
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.17 ▼1.21 | 1.58 ▲0.04 | 42.16 ▼5.36 |
Dashboard /wp-admin | 2,240 ▲52 | 5.85 ▲0.04 | 110.58 ▲6.01 | 43.29 ▲0.93 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.04 ▲0.02 | 34.06 ▼4.22 | 33.94 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,567 ▲50 | 18.77 ▲1.02 | 583.44 ▼65.78 | 56.16 ▲4.68 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.33 ▲0.08 | 96.69 ▼5.90 | 43.15 ▼1.98 |
Help and introduction /wp-admin/admin.php?page=nw_help | 865 | 2.02 | 24.60 | 31.12 |
Settings /wp-admin/admin.php?page=nw_options | 821 | 2.03 | 25.02 | 23.77 |
News /wp-admin/admin.php?page=nw_newslist_page | 795 | 2.03 | 24.64 | 27.15 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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 fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/news-wall/plugin-panel.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/news-wall/news-wall.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/news-wall/shortcode.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: informing, news, notifications, notices, communication with users
news-wall/news-wall.php 85% from 13 tests
The main file in "News Wall" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.7" instead of "5.2")
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "7.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,113 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 3 | 197 | 199 | 619 |
PHP | 4 | 6 | 20 | 491 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/announce.png | 0.52KB | 0.61KB | 0.00% |
images/close-section.png | 0.52KB | 0.62KB | 0.00% |