Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.63ms] Passed 4 tests
An overview of server-side resources used by Singlepage Website
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.95 ▼4.91 |
Dashboard /wp-admin | 3.40 ▲0.09 | 51.89 ▼6.36 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.63 ▼0.60 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 99.90 ▼10.63 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.27 ▲1.47 |
Singlepage Setting /wp-admin/admin.php?page=singlepage-setting | 3.26 | 36.35 |
Singlepage /wp-admin/admin.php?page=singlepagewebsite | 3.39 | 43.99 |
Server storage [IO: ▲3.41MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_onepagedata |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
ps_settings |
widget_theysaidso_widget |
logo |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Singlepage Website
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 14.87 ▲0.50 | 3.54 ▲1.53 | 46.92 ▲2.76 |
Dashboard /wp-admin | 2,228 ▲40 | 5.86 ▲1.00 | 105.21 ▼2.86 | 79.70 ▲35.89 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 2.07 ▲0.03 | 37.91 ▲3.31 | 30.90 ▼3.66 |
Add New Post /wp-admin/post-new.php | 1,697 ▲159 | 22.33 ▼0.90 | 704.89 ▲43.25 | 46.38 ▼14.27 |
Media Library /wp-admin/upload.php | 1,491 ▲103 | 4.19 ▼0.10 | 99.26 ▼12.19 | 78.76 ▲30.96 |
Singlepage Setting /wp-admin/admin.php?page=singlepage-setting | 974 | 1.72 | 28.17 | 27.19 |
Singlepage /wp-admin/admin.php?page=singlepagewebsite | 3,097 | 11.61 | 249.00 | 183.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_onepagedata
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- ps_settings
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- logo
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=singlepage-setting
- > Notice in wp-content/plugins/singlepage/singlepagewebsite.php+311
Undefined index: additionalcss_url
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/singlepage/singledata/singlepagedata.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/singlepage/templates/singlepagetemplate.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=singlepagewebsite
- > Network (severe)
wp-admin/; - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 83% 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:
- Donate link: Invalid url: "none"
singlepage/singlepagewebsite.php 69% from 13 tests
The entry point to "Singlepage Website" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: It is recommended to name the main PHP file as the plugin slug ("singlepage.php" instead of "singlepagewebsite.php")
- Description: The description should be shorter than 140 characters (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin14,452 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 4,633 | 36 | 10,794 |
SVG | 3 | 0 | 0 | 2,692 |
PHP | 3 | 46 | 41 | 673 |
JavaScript | 4 | 66 | 33 | 293 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 25 | |
▷ Named functions | 25 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.77MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/screenshot/Singlepage-main.png | 94.12KB | 22.55KB | ▼ 76.04% |
assets/img/hero/play.png | 1.92KB | 0.93KB | ▼ 51.43% |
assets/img/logo.png | 1.72KB | 0.74KB | ▼ 56.94% |
assets/img/user.png | 4.69KB | 2.67KB | ▼ 42.99% |
assets/img/category/shape.png | 157.01KB | 69.25KB | ▼ 55.90% |