Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.23ms] Passed 4 tests
An overview of server-side resources used by Lana Sitemap
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.54 ▼1.41 |
Dashboard /wp-admin | 3.38 ▲0.08 | 53.16 ▲0.81 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 48.60 ▲3.48 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 94.66 ▼7.34 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 37.02 ▲3.03 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Lana Sitemap
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.19 ▼1.49 | 1.66 ▲0.01 | 38.00 ▼6.21 |
Dashboard /wp-admin | 2,206 ▲18 | 4.83 ▼0.97 | 112.70 ▼5.20 | 40.70 ▼3.59 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.00 | 39.49 ▲0.07 | 35.29 ▲0.07 |
Add New Post /wp-admin/post-new.php | 6,234 ▲4,715 | 18.89 ▼4.15 | 848.06 ▲225.60 | 55.15 ▲3.19 |
Media Library /wp-admin/upload.php | 1,385 ▲6 | 4.19 ▼0.04 | 98.47 ▼7.97 | 41.51 ▼5.13 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Lana_Sitemap' not found in wp-content/plugins/lana-sitemap/includes/class-lana-sitemap-admin.php:3
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #2 in lana-sitemap/assets to your readme.txt
lana-sitemap/lana-sitemap.php Passed 13 tests
Analyzing the main PHP file in "Lana Sitemap" version 1.0.3
29 characters long description:
XML and Google News Sitemaps.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,811 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 764 | 892 | 2,613 |
XSLT | 3 | 0 | 0 | 154 |
JavaScript | 1 | 6 | 12 | 44 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 183.50 |
▷ Minimum class complexity | 148.00 |
▷ Maximum class complexity | 219.00 |
Average method complexity | 4.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 86 | 88.66% |
▷ Protected methods | 4 | 4.12% |
▷ Private methods | 7 | 7.22% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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