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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.86ms] Passed 4 tests
Server-side resources used by WFS Easy Website Demo
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.50 ▲1.27 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.55 ▼3.19 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 42.67 ▼5.80 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.77 ▼3.70 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.45 ▲2.18 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WFS Easy Website Demo
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲58 | 13.25 ▼1.44 | 1.75 ▼1.28 | 45.75 ▼3.77 |
Dashboard /wp-admin | 2,224 ▲36 | 4.95 ▼0.96 | 99.19 ▼12.74 | 64.78 ▲16.27 |
Posts /wp-admin/edit.php | 2,083 ▼3 | 2.02 ▼0.04 | 36.18 ▼0.67 | 29.05 ▼4.71 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 23.40 ▲0.12 | 676.73 ▼7.45 | 54.57 ▲0.65 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.20 ▲0.02 | 95.31 ▼21.41 | 80.76 ▲32.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- 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
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(../wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/wfs-easy-demo-website/assets/demo/header.php on line 7
- > PHP Fatal error
require_once(): Failed opening required '../wp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/wfs-easy-demo-website/assets/demo/header.php on line 7
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wfs-easy-demo-website/assets/demo/content.php on line 2
- > PHP Warning
require_once(ABSPATH/wp-content/plugins/wfs_easy_demo_website/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wfs-easy-demo-website/assets/demo/content.php on line 2
- > PHP Warning
require_once(../wp-load.php): failed to open stream: No such file or directory in wp-content/plugins/wfs-easy-demo-website/assets/demo/header.php on line 7
- > PHP Fatal error
require_once(): Failed opening required '../wp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/wfs-easy-demo-website/assets/demo/header.php on line 7
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-content/plugins/wfs_easy_demo_website/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wfs-easy-demo-website/assets/demo/content.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wfs-easy-demo-website/wfs_easy_demo_website.php:34
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wfs-easy-demo-website ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (Demo website when displaying), #2 (Wordpress menu config), #3 (Plugin admin panel)
wfs-easy-demo-website/wfs_easy_demo_website.php 92% from 13 tests
"WFS Easy Website Demo" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wfs-easy-demo-website.php" instead of "wfs_easy_demo_website.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
No dangerous file extensions were detected653 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 62 | 40 | 477 |
JavaScript | 2 | 7 | 5 | 108 |
CSS | 1 | 8 | 3 | 68 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 84.36KB | 35.03KB | ▼ 58.47% |
screenshot-3.png | 44.54KB | 29.02KB | ▼ 34.83% |
screenshot-1.png | 17.65KB | 8.21KB | ▼ 53.46% |
assets/images/menu_icon.png | 2.73KB | 0.08KB | ▼ 97.00% |