Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲3.51MB] [CPU: ▲9.13ms] Passed 4 tests
An overview of server-side resources used by TemplatesNext OnePager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.17 ▲4.71 | 64.64 ▲16.15 |
Dashboard /wp-admin | 6.95 ▲3.64 | 79.84 ▲14.23 |
Posts /wp-admin/edit.php | 7.01 ▲3.65 | 73.85 ▲18.34 |
Add New Post /wp-admin/post-new.php | 8.94 ▲3.06 | 109.74 ▼12.19 |
Media Library /wp-admin/upload.php | 6.91 ▲3.68 | 78.11 ▲35.02 |
Welcome to Meta Box /wp-admin/index.php?page=meta-box-about | 6.97 | 58.76 |
Server storage [IO: ▲11.59MB] [DB: ▲0.24MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- You have illegally modified 1 file (0.61KB) outside of "wp-content/plugins/templatesnext-onepager/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/txo-onepager.php
Filesystem: 698 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by TemplatesNext OnePager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,130 ▲369 | 13.86 ▼0.42 | 22.99 ▲20.98 | 47.70 ▼4.44 |
Dashboard /wp-admin | 2,201 ▲27 | 5.53 ▼0.14 | 107.00 ▼1.23 | 46.40 ▼16.73 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.02 ▼0.01 | 43.52 ▼1.03 | 39.83 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,416 ▼110 | 17.78 ▼5.15 | 836.63 ▲86.00 | 57.21 ▲2.34 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.25 ▲0.12 | 129.24 ▼20.50 | 49.89 ▼17.08 |
Welcome to Meta Box /wp-admin/index.php?page=meta-box-about | 1,729 | 2.03 | 28.00 | 59.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.24MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 14× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/templatesnext-onepager/inc/meta-box/inc/templates/video.php
- > /wp-content/plugins/templatesnext-onepager/templates/home-pricing.php
- > /wp-content/plugins/templatesnext-onepager/inc/kirki/controls/views/select.php
- > /wp-content/plugins/templatesnext-onepager/inc/kirki/controls/views/radio.php
- > /wp-content/plugins/templatesnext-onepager/inc/meta-box/inc/templates/audio.php
- > /wp-content/plugins/templatesnext-onepager/templates/home-video.php
- > /wp-content/plugins/templatesnext-onepager/inc/meta-box/inc/templates/media.php
- > /wp-content/plugins/templatesnext-onepager/inc/meta-box/inc/templates/upload.php
- > /wp-content/plugins/templatesnext-onepager/inc/meta-box/inc/templates/image-advanced.php
- > /wp-content/plugins/templatesnext-onepager/inc/kirki/controls/views/number.php
- 164× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/templatesnext-onepager/inc/kirki/deprecated/filters.php:4
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field_Radio' not found in wp-content/plugins/templatesnext-onepager/inc/kirki/field/class-kirki-field-radio-buttonset.php:15
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Control_Base' not found in wp-content/plugins/templatesnext-onepager/inc/kirki/controls/php/class-kirki-control-background.php:18
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Output_Property' not found in wp-content/plugins/templatesnext-onepager/inc/kirki/modules/css/property/class-kirki-output-property-background-position.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/templatesnext-onepager/inc/txo-sections.php:60
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Image_Advanced_Field' not found in wp-content/plugins/templatesnext-onepager/inc/meta-box/inc/fields/single-image.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/templatesnext-onepager/templates/home-images.php:5
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/templatesnext-onepager/inc/kirki/field/class-kirki-field-dimensions.php:15
- > PHP Fatal error
Uncaught Error: Class 'Kirki_Field_Select' not found in wp-content/plugins/templatesnext-onepager/inc/kirki/field/class-kirki-field-dropdown-pages.php:15
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Datetime_Field' not found in wp-content/plugins/templatesnext-onepager/inc/meta-box/inc/fields/date.php:11
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (One Page Website), #2 (All Options in Customizer), #3 (Active/Sort sections), #4 (Content Option in customizer), #5 (Highly customizable)
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
templatesnext-onepager/tx-onepager.php 92% from 13 tests
The entry point to "TemplatesNext OnePager" version 1.3.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("templatesnext-onepager.php" instead of "tx-onepager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin69,697 lines of code in 589 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 198 | 5,171 | 3,835 | 21,671 |
PHP | 274 | 3,835 | 11,394 | 21,331 |
CSS | 58 | 1,502 | 384 | 12,577 |
JSON | 4 | 0 | 0 | 8,318 |
SVG | 33 | 0 | 0 | 2,919 |
PO File | 11 | 514 | 567 | 1,384 |
Markdown | 2 | 327 | 0 | 1,028 |
Sass | 7 | 66 | 94 | 427 |
YAML | 1 | 7 | 0 | 27 |
XML | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 207 | |
▷ Abstract classes | 6 | 2.90% |
▷ Concrete classes | 201 | 97.10% |
▷ Final classes | 8 | 3.98% |
Methods | 810 | |
▷ Static methods | 358 | 44.20% |
▷ Public methods | 587 | 72.47% |
▷ Protected methods | 202 | 24.94% |
▷ Private methods | 21 | 2.59% |
Functions | 166 | |
▷ Named functions | 142 | 85.54% |
▷ Anonymous functions | 24 | 14.46% |
Constants | 13 | |
▷ Global constants | 13 | 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
57 compressed PNG files occupy 3.25MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/meta-box/img/jqueryui/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
images/trans-pat-2.png | 26.86KB | 28.12KB | 0.00% |
images/portfolio/portfolio4.png | 50.47KB | 48.61KB | ▼ 3.68% |
images/curve-up.png | 1.56KB | 0.66KB | ▼ 57.72% |
css/tx/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |