Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.90ms] Passed 4 tests
Analyzing server-side resources used by WP Tech Lookup
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.73 ▼1.40 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.40 ▼1.99 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 47.70 ▲0.94 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.96 ▼17.15 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.55 ▲2.47 |
WP Tech Lookup /wp-admin/tools.php?page=wtl-tech-lookup | 3.26 | 52.38 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Tech Lookup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.39 ▼0.14 | 1.77 ▼0.08 | 42.33 ▲0.49 |
Dashboard /wp-admin | 2,196 ▲16 | 5.55 ▲0.01 | 96.68 ▲3.16 | 42.40 ▲1.70 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 1.98 ▼0.05 | 34.49 ▼0.21 | 36.87 ▼7.50 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.35 ▲0.21 | 641.10 ▼36.90 | 59.15 ▲5.64 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.18 ▲0.02 | 101.85 ▼4.35 | 46.47 ▲0.21 |
WP Tech Lookup /wp-admin/tools.php?page=wtl-tech-lookup | 2,508 | 2.23 | 37.55 | 38.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
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
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-tech-lookup/wp-tech-lookup.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-tech-lookup/classes/wtl-cron-info.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: os information, file permissions, php information, server monitor, wordpress information...
wp-tech-lookup/wp-tech-lookup.php Passed 13 tests
"WP Tech Lookup" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
88 characters long description:
WP Tech Lookup plugin is to see all the necessary information about server at one place.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin734 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 137 | 67 | 695 |
CSS | 1 | 7 | 3 | 36 |
JavaScript | 1 | 1 | 1 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.60 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 16.67% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin