Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼12.30ms] Passed 4 tests
An overview of server-side resources used by WP Layouts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 38.45 ▼2.26 |
Dashboard /wp-admin | 3.64 ▲0.29 | 48.12 ▼14.10 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 51.23 ▲4.00 |
Add New Post /wp-admin/post-new.php | 5.08 ▼0.81 | 59.70 ▼36.83 |
Media Library /wp-admin/upload.php | 3.50 ▲0.26 | 40.17 ▲5.86 |
Settings /wp-admin/admin.php?page=ags-layouts-settings | 3.51 | 34.71 |
WP Layouts /wp-admin/admin.php?page=ags-layouts | 3.48 | 33.34 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 83 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Layouts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 14.62 ▲0.27 | 1.69 ▲0.12 | 35.96 ▼4.36 |
Dashboard /wp-admin | 2,247 ▲72 | 5.32 ▼0.33 | 100.99 ▲1.84 | 40.12 ▼2.13 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.65 ▲0.65 | 40.52 ▲5.19 | 34.10 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,822 ▲296 | 26.70 ▲3.67 | 734.01 ▲8.13 | 41.32 ▼16.01 |
Media Library /wp-admin/upload.php | 1,459 ▲65 | 4.75 ▲0.57 | 107.05 ▲12.79 | 50.31 ▲5.73 |
Settings /wp-admin/admin.php?page=ags-layouts-settings | 982 | 2.37 | 26.71 | 78.67 |
WP Layouts /wp-admin/admin.php?page=ags-layouts | 1,505 | 2.92 | 72.96 | 71.61 |
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
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 31× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AGSLayouts' not found in wp-content/plugins/wp-layouts/includes/api.php:2
- > PHP Fatal error
Uncaught Error: Class 'AGSLayouts' not found in wp-content/plugins/wp-layouts/integrations/Gutenberg/Gutenberg.php:10
- > PHP Fatal error
Uncaught Error: Class 'AGSLayouts' not found in wp-content/plugins/wp-layouts/includes/account.php:2
- > PHP Fatal error
Uncaught Error: Class 'AGSLayouts' not found in wp-content/plugins/wp-layouts/includes/exceptions/ApiTokenException.php:2
- > PHP Fatal error
Uncaught Error: Class 'AGSLayouts' not found in wp-content/plugins/wp-layouts/includes/list.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-layouts/includes/site-import/wordpress-importer.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'AGSLayouts' not found in wp-content/plugins/wp-layouts/includes/packager.php:2
- > PHP Fatal error
Uncaught Error: Class 'AGSLayouts' not found in wp-content/plugins/wp-layouts/includes/delete.php:2
- > PHP Fatal error
Uncaught Error: Class 'AGSLayouts' not found in wp-content/plugins/wp-layouts/includes/update.php:2
- > PHP Fatal error
Uncaught Error: Class 'AGSLayouts' not found in wp-content/plugins/wp-layouts/includes/export-ajax.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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
wp-layouts/ags-layouts.php 85% from 13 tests
The main PHP file in "WP Layouts" ver. 0.6.21 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-layouts.php" instead of "ags-layouts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin10,497 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 1,235 | 659 | 5,123 |
JavaScript | 11 | 472 | 425 | 3,000 |
CSS | 3 | 526 | 176 | 2,094 |
SVG | 24 | 1 | 13 | 280 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 41.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 205.00 |
Average method complexity | 6.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 175 | |
▷ Static methods | 123 | 70.29% |
▷ Public methods | 171 | 97.71% |
▷ Protected methods | 1 | 0.57% |
▷ Private methods | 3 | 1.71% |
Functions | 12 | |
▷ Named functions | 4 | 33.33% |
▷ Anonymous functions | 8 | 66.67% |
Constants | 12 | |
▷ Global constants | 3 | 25.00% |
▷ Class constants | 9 | 75.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/datatables/images/sort_desc.png | 1.52KB | 0.25KB | ▼ 83.88% |
vendor/datatables/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
vendor/datatables/images/sort_asc.png | 1.51KB | 0.25KB | ▼ 83.68% |
vendor/datatables/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
vendor/datatables/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |