Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.61MB] [CPU: ▼25.61ms] Passed 4 tests
This is a short check of server-side resources used by Duplicate Front Page
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 35.33 ▼6.80 |
Dashboard /wp-admin | 3.38 ▲0.04 | 43.88 ▼17.19 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.56 ▼0.19 |
Add New Post /wp-admin/post-new.php | 3.23 ▼2.66 | 35.79 ▼78.24 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.99 ▲3.39 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- The plugin illegally modified 1 file (0.64KB) outside of "wp-content/plugins/load-your-site-url-in-any-page/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/laup_page_template.php
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Duplicate Front Page
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲185 | 13.53 ▼0.82 | 9.25 ▲7.61 | 39.14 ▼4.34 |
Dashboard /wp-admin | 2,216 ▲36 | 5.69 ▲0.16 | 93.61 ▲4.15 | 41.89 ▲4.99 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.03 ▲0.02 | 40.60 ▲0.31 | 35.77 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,551 ▲14 | 18.31 ▲0.19 | 640.24 ▲33.69 | 64.37 ▲1.21 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.22 ▲0.03 | 94.93 ▼4.68 | 42.10 ▼0.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/load-your-site-url-in-any-page/public/partials/load-page-or-post-by-url-public-display.php
- > /wp-content/plugins/load-your-site-url-in-any-page/admin/partials/load-page-or-post-by-url-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: duplicate template, duplicate front page, duplicate, iframe, copy template...
load-your-site-url-in-any-page/load-page-or-post-by-url.php 85% from 13 tests
This is the main PHP file of "Duplicate Front Page" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("load-your-site-url-in-any-page.php" instead of "load-page-or-post-by-url.php")
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 plugin374 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 149 | 585 | 337 |
CSS | 2 | 1 | 8 | 30 |
JavaScript | 2 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.26MB with 0.18MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
laup-steps.png | 145.81KB | 46.75KB | ▼ 67.94% |
screenshot-1.png | 118.56KB | 38.09KB | ▼ 67.87% |