Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.85MB] [CPU: ▼33.81ms] Passed 4 tests
Analyzing server-side resources used by Lanpa custom contents
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 45.66 ▲1.68 |
Dashboard /wp-admin | 3.10 ▼0.21 | 25.55 ▼25.90 |
Posts /wp-admin/edit.php | 3.10 ▼0.26 | 29.02 ▼22.34 |
Add New Post /wp-admin/post-new.php | 3.10 ▼2.79 | 26.54 ▼68.96 |
Media Library /wp-admin/upload.php | 3.10 ▼0.13 | 25.11 ▼18.04 |
Lanpa /wp-admin/themes.php?page=team-factory/lanpa-custom-contents.php | 3.10 | 25.16 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Lanpa custom contents: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▼3 | 13.20 ▲0.02 | 5.91 ▲3.98 | 43.30 ▼2.92 |
Dashboard /wp-admin | 2,211 ▲5 | 5.80 ▼0.06 | 106.94 ▲0.86 | 38.71 ▼1.18 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.04 ▲0.03 | 43.62 ▲4.18 | 35.76 ▼1.97 |
Add New Post /wp-admin/post-new.php | 1,521 ▲7 | 17.57 ▲0.06 | 736.96 ▼41.17 | 51.42 ▼31.20 |
Media Library /wp-admin/upload.php | 1,390 ▲5 | 4.22 ▲0.06 | 94.75 ▼8.31 | 40.86 ▼5.55 |
Lanpa /wp-admin/themes.php?page=team-factory/lanpa-custom-contents.php | 1,440 | 2.19 | 24.43 | 46.34 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=team-factory/lanpa-custom-contents.php
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/team-factory/lanpa-custom-contents.php:32
- > 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/themes.php?page=team-factory/lanpa-custom-contents.php
- > Network (severe)
wp-content/plugins/team-factory/css/style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/themes.php?page=team-factory/lanpa-custom-contents.php
- > Network (severe)
wp-content/plugins/lanpa-custom-contents/js/script.js?ver=1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/themes.php?page=team-factory/lanpa-custom-contents.php
- > Network (severe)
wp-content/plugins/lanpa-custom-contents/images/solution_mark.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/themes.php?page=team-factory/lanpa-custom-contents.php
- > Network (severe)
wp-content/plugins/lanpa-custom-contents/images/reason_mark.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/themes.php?page=team-factory/lanpa-custom-contents.php
- > Network (severe)
wp-content/plugins/lanpa-custom-contents/images/testimonials_mark.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
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
5 plugin tags: dashboard, plugin, theme, custom, text
team-factory/lanpa-custom-contents.php 85% from 13 tests
Analyzing the main PHP file in "Lanpa custom contents" version 1.0.0
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("team-factory.php" instead of "lanpa-custom-contents.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 394 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected430 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 69 | 34 | 430 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 74.00 |
▷ Minimum class complexity | 74.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin