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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.33ms] Passed 4 tests
Server-side resources used by HTML Tag and Class Replace
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.95 ▼1.13 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.04 ▼4.42 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.70 ▼6.56 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.35 ▼1.20 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.49 ▲2.70 |
Tag and Class Replace /wp-admin/options-general.php?page=html-tag-and-class-replace | 3.27 | 33.26 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for HTML Tag and Class Replace
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲118 | 13.42 ▼0.95 | 8.66 ▲7.04 | 43.22 ▼3.12 |
Dashboard /wp-admin | 2,204 ▲24 | 5.54 ▼0.13 | 85.30 ▼3.99 | 37.40 ▼6.31 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.00 ▲0.05 | 38.60 ▼0.63 | 35.06 ▲1.25 |
Add New Post /wp-admin/post-new.php | 1,531 ▼0 | 23.22 ▲0.46 | 633.31 ▼65.35 | 45.26 ▼6.50 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.19 ▼0.04 | 98.29 ▲2.23 | 41.58 ▲1.08 |
Tag and Class Replace /wp-admin/options-general.php?page=html-tag-and-class-replace | 882 | 1.99 | 21.85 | 32.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/html-tag-and-class-replace/view/deshboard.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/html-tag-and-class-replace/html-tag-and-class-replace.php:24
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
html-tag-and-class-replace/html-tag-and-class-replace.php Passed 13 tests
The main PHP script in "HTML Tag and Class Replace" version 1.0.4 is automatically included on every request by WordPress
71 characters long description:
Allows you to Replace any HTML Tag and Class of your WordPress WebSite.
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
Everything looks great! No dangerous files found in this plugin2,052 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 429 | 670 | 1,689 |
Markdown | 1 | 82 | 0 | 255 |
CSS | 1 | 5 | 0 | 51 |
JSON | 1 | 0 | 0 | 45 |
JavaScript | 1 | 4 | 0 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 40.60 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 1 | 1.02% |
▷ Public methods | 64 | 65.31% |
▷ Protected methods | 6 | 6.12% |
▷ Private methods | 28 | 28.57% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG images were not found in this plugin