Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼9.26ms] Passed 4 tests
A check of server-side resources used by Laiser Tag
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.42 ▼0.67 |
Dashboard /wp-admin | 3.43 ▲0.08 | 55.37 ▼12.53 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 52.18 ▼1.53 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 94.00 ▼22.29 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 40.28 ▲1.49 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 13 new options
New WordPress options |
---|
ltoc_disable_batch |
can_compress_scripts |
widget_recent-comments |
ltoc_included_categories |
ltoc_tag_blacklist |
widget_recent-posts |
widget_theysaidso_widget |
ltoc_batch_posts |
ltoc_api_key |
ltoc_tag_relevance |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Laiser Tag
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.51 ▲0.35 | 1.94 ▲0.26 | 43.72 ▼1.81 |
Dashboard /wp-admin | 2,221 ▲53 | 5.62 ▲0.02 | 88.69 ▼5.52 | 42.31 ▼0.86 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.97 ▼0.06 | 38.22 ▼0.46 | 34.35 ▼4.97 |
Add New Post /wp-admin/post-new.php | 1,549 ▲14 | 23.32 ▲5.10 | 656.74 ▲5.46 | 50.02 ▼16.29 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.24 ▲0.08 | 97.96 ▼3.72 | 46.24 ▲2.86 |
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: 13 options
- db_upgraded
- ltoc_tag_blacklist
- ltoc_tag_relevance
- widget_recent-posts
- ltoc_api_key
- ltoc_included_categories
- can_compress_scripts
- ltoc_add_tag_on_save
- widget_recent-comments
- widget_theysaidso_widget
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/laiser-tag/templates/adminOptionPage.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/laiser-tag/templates/missingApiAdminNotice.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 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
5 plugin tags: content optimization, tagging, taxonomy, open calais, semantic data
laiser-tag/laisertag.php 92% from 13 tests
Analyzing the main PHP file in "Laiser Tag" version 1.2.5
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("laiser-tag.php" instead of "laisertag.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,271 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 136 | 87 | 863 |
CSS | 1 | 51 | 38 | 300 |
JavaScript | 1 | 13 | 9 | 73 |
SVG | 1 | 0 | 1 | 35 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 18 | 62.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 37.93% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/calais-logo.png | 1.92KB | 0.62KB | ▼ 67.78% |
assets/icon-128.png | 15.16KB | 5.53KB | ▼ 63.56% |
assets/images/lt_logo.png | 7.25KB | 3.21KB | ▼ 55.66% |