Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼11.37ms] Passed 4 tests
This is a short check of server-side resources used by Theme Catalog
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.99 ▼4.02 |
Dashboard /wp-admin | 3.37 ▲0.03 | 47.35 ▼15.90 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 50.17 ▼2.48 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 95.99 ▼23.07 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.86 ▼0.76 |
Theme Catalog /wp-admin/options-general.php?page=theme_catalog_options | 3.26 | 35.72 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Theme Catalog
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.69 ▲0.42 | 1.66 ▼0.31 | 45.15 ▲2.62 |
Dashboard /wp-admin | 2,199 ▲19 | 5.56 ▼0.04 | 92.93 ▲4.95 | 37.83 ▼8.47 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.05 | 41.56 ▲1.78 | 35.66 ▼0.21 |
Add New Post /wp-admin/post-new.php | 1,530 ▲3 | 21.95 ▼1.22 | 616.25 ▼4.81 | 49.88 ▼10.69 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.36 ▲0.19 | 101.04 ▲7.07 | 44.30 ▼1.32 |
Theme Catalog /wp-admin/options-general.php?page=theme_catalog_options | 831 | 2.00 | 27.07 | 27.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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 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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/theme-catalog/theme-catalog.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: themes, picker, catalog, menus, widget...
theme-catalog/theme-catalog.php Passed 13 tests
The entry point to "Theme Catalog" version 0.02 is a PHP file that has certain tags in its header comment area
103 characters long description:
Attractive front-end theme switcher/preview allowing demo of all themes, with menu and widget handling.
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
Success! There were no dangerous files found in this plugin335 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 3 | 22 | 334 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 59.00 |
▷ Minimum class complexity | 59.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.88% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.36MB with 0.25MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 369.78KB | 109.67KB | ▼ 70.34% |