Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼13.67ms] Passed 4 tests
An overview of server-side resources used by wordpress theme detector
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.80 ▼7.74 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.40 ▼23.52 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 65.23 ▲13.90 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.16 ▼23.90 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.83 ▲0.50 |
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: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
wordpress theme detector: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲186 | 13.97 ▼0.55 | 6.14 ▲4.42 | 45.13 ▲1.61 |
Dashboard /wp-admin | 2,228 ▲40 | 5.77 ▲0.88 | 101.03 ▼21.66 | 39.87 ▼6.69 |
Posts /wp-admin/edit.php | 2,114 ▲22 | 2.01 ▼0.03 | 43.46 ▲5.57 | 35.60 ▲2.97 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.06 ▼0.13 | 675.53 ▲1.30 | 56.62 ▲0.15 |
Media Library /wp-admin/upload.php | 1,413 ▲31 | 4.21 ▲0.09 | 95.86 ▼6.37 | 42.30 ▼3.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
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)
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 4× 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/theme-detector/theme-detector.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/theme-detector/admin/dtctr_setting.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/theme-detector/core/_form.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/theme-detector/core/theme_layout.php:124
- > PHP Fatal error
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 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #2 (Implementation of the tool on a page or post), #3 (Search results - theme), #4 (Search results - plugins)
theme-detector/theme-detector.php 92% from 13 tests
The main PHP script in "wordpress theme detector" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 193 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin622 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 12 | 13 | 353 |
PHP | 4 | 46 | 84 | 207 |
JavaScript | 1 | 4 | 0 | 62 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin