Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/mockpress/mockpress.php+34
Use of undefined constant ELEMENTOR_VERSION - assumed 'ELEMENTOR_VERSION' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼0.01MB] [CPU: ▼7.74ms] Passed 4 tests
This is a short check of server-side resources used by MockPress - Landing Page Template Elementor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.23 ▼5.09 |
Dashboard /wp-admin | 3.31 ▼0.04 | 55.03 ▼12.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.30 ▼6.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 98.95 ▼6.81 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.25 ▲2.42 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/mockpress/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 108 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MockPress - Landing Page Template Elementor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.60 ▲0.08 | 2.10 ▲0.41 | 44.04 ▲4.31 |
Dashboard /wp-admin | 2,224 ▲18 | 4.84 ▼0.09 | 100.09 ▼2.06 | 41.32 ▼5.74 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.05 | 35.30 ▼1.94 | 35.37 ▼1.49 |
Add New Post /wp-admin/post-new.php | 1,531 ▼1 | 23.05 ▲0.01 | 619.59 ▼20.41 | 58.80 ▲7.37 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.21 ▼0.20 | 100.21 ▼2.69 | 42.72 ▼1.73 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mockpress/admin/manager/header.php
- 39× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant MOCKPRESS_PATH - assumed 'MOCKPRESS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mockpress/includes/widgets/four_widget/four_widget.php on line 9
- > PHP Warning
Use of undefined constant QI_ADDONS_FOR_ELEMENTOR_SHORTCODES_PATH - assumed 'QI_ADDONS_FOR_ELEMENTOR_SHORTCODES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mockpress/includes/widgets/four_widget/includes/shortcode/process/variations/horizontal/include.php on line 3
- > PHP Notice
Undefined variable: item_classes in wp-content/plugins/mockpress/includes/widgets/four_widget/includes/shortcode/process/variations/vertical/layouts/vertical.php on line 2
- > PHP Warning
require_once(MOCKPRESS_PATH/includes/endpoints/get-licenses.php): failed to open stream: No such file or directory in wp-content/plugins/mockpress/includes/plugin.php on line 176
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mockpress/includes/widgets/four_widget/includes/shortcode/process/variations/horizontal/horizontal.php:17
- > PHP Warning
Use of undefined constant MOCKPRESS_URL - assumed 'MOCKPRESS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mockpress/admin/manager/header.php on line 6
- > PHP Warning
Use of undefined constant MOCKPRESS_URL - assumed 'MOCKPRESS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mockpress/includes/widgets/four_widget/four_widget.php on line 10
- > PHP Warning
Use of undefined constant MOCKPRESS_URL - assumed 'MOCKPRESS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mockpress/admin/manager/header.php on line 13
- > PHP Warning
include_once(): Failed opening 'QI_ADDONS_FOR_ELEMENTOR_SHORTCODES_PATH/process/variations/horizontal/horizontal.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/mockpress/includes/widgets/four_widget/includes/shortcode/process/variations/horizontal/include.php on line 3
- > PHP Warning
Use of undefined constant MOCKPRESS_PATH - assumed 'MOCKPRESS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mockpress/includes/plugin.php on line 176
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: elementor, template, design
mockpress/mockpress.php Passed 13 tests
The main file in "MockPress - Landing Page Template Elementor" v. 1.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
28 characters long description:
Template Elementor Indonesia
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 plugin8,465 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 976 | 1,372 | 5,751 |
CSS | 13 | 163 | 22 | 1,569 |
JavaScript | 5 | 40 | 105 | 924 |
SVG | 15 | 0 | 1 | 191 |
Markdown | 2 | 9 | 0 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 16.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 124 | |
▷ Static methods | 12 | 9.68% |
▷ Public methods | 87 | 70.16% |
▷ Protected methods | 27 | 21.77% |
▷ Private methods | 10 | 8.06% |
Functions | 31 | |
▷ Named functions | 23 | 74.19% |
▷ Anonymous functions | 8 | 25.81% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.40MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/widgets/four_widget/includes/shortcode/process/assets/img/dashboard_icon.png | 1.33KB | 0.33KB | ▼ 75.48% |
admin/assets/img/User1.png | 15.87KB | 5.97KB | ▼ 62.39% |
admin/assets/img/Feedback.png | 16.31KB | 5.94KB | ▼ 63.61% |
admin/assets/img/Rectangle 599.png | 125.62KB | 44.52KB | ▼ 64.56% |
admin/assets/img/bg.png | 14.06KB | 11.43KB | ▼ 18.71% |