Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Compile error in wp-content/plugins/sitemap-google-news/google-news-generate.php+68
'break' not in the 'loop' or 'switch' context
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.98ms] Passed 4 tests
A check of server-side resources used by Sitemap Google News
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 47.02 ▲1.99 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.90 ▼7.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.35 ▼1.58 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.01 ▼17.49 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.42 ▼1.07 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Sitemap Google News
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.13 ▼0.22 | 1.79 ▲0.14 | 44.42 ▲2.37 |
Dashboard /wp-admin | 2,195 ▲21 | 5.63 ▲0.10 | 88.26 ▼7.82 | 41.31 ▼2.03 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.05 | 42.69 ▲6.74 | 38.31 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 22.99 ▼0.64 | 670.63 ▼0.33 | 52.68 ▼3.52 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.26 ▲0.05 | 99.69 ▼3.27 | 46.92 ▼0.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
'break' not in the 'loop' or 'switch' context in wp-content/plugins/sitemap-google-news/google-news-generate.php on line 68
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sitemap-google-news/google-news.php:12
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI ("")
sitemap-google-news/google-news.php 92% from 13 tests
The principal PHP file in "Sitemap Google News" v. 0.0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sitemap-google-news.php" instead of "google-news.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
Good job! No executable or dangerous file extensions detected521 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 59 | 24 | 521 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.75 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 54.55% |
▷ Protected methods | 4 | 18.18% |
▷ Private methods | 6 | 27.27% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin