Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼262.57ms] Passed 4 tests
This is a short check of server-side resources used by Follow Tags & Categories
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▲0.27 | 34.89 ▲14.76 |
Dashboard /wp-admin | 3.27 ▲0.21 | 50.98 ▲1.53 |
Posts /wp-admin/edit.php | 3.32 ▲0.21 | 45.97 ▲0.74 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.14 | 95.84 ▼1,045.51 |
Media Library /wp-admin/upload.php | 3.15 ▲0.14 | 30.51 ▼7.05 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_nfc_tag_widget |
widget_nfc_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Follow Tags & Categories
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲182 | 16.67 ▲1.13 | 10.30 ▲1.89 | 47.37 ▼2.57 |
Dashboard /wp-admin | 2,934 ▲81 | 5.90 ▲0.08 | 139.49 ▲4.78 | 103.98 ▲4.77 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.69 ▼0.01 | 65.04 ▼2.80 | 90.36 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,651 ▼0 | 16.90 ▼0.50 | 350.27 ▼12.99 | 105.95 ▼2.26 |
Media Library /wp-admin/upload.php | 1,772 ▼0 | 5.03 ▲0.01 | 156.32 ▲9.18 | 107.83 ▼2.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 2 options in the database
- widget_nfc_widget
- widget_nfc_tag_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
Even though everything seems fine, this is not an exhaustive test
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/follow-tags/includes/Admin/NFC_Widget.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/follow-tags/includes/Admin/NFC_Tag_Widget.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Search Follow Tags & Categories Then click Install), #2 (Set a Widget from Appearance->Widget), #3 (Final output)
follow-tags/follow-tags-categories.php 85% from 13 tests
"Follow Tags & Categories" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("follow-tags.php" instead of "follow-tags-categories.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin782 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 148 | 282 | 622 |
JavaScript | 1 | 19 | 1 | 66 |
PO File | 1 | 14 | 14 | 49 |
CSS | 1 | 5 | 0 | 31 |
JSON | 2 | 0 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 16.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 4 | 8.51% |
▷ Public methods | 46 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.13% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 0% from 1 test
Image compression 0% from 1 test
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.73MB with 0.57MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 149.77KB | 33.47KB | ▼ 77.65% |
screenshot-1.png | 162.04KB | 30.90KB | ▼ 80.93% |
screenshot-3.png | 436.19KB | 110.93KB | ▼ 74.57% |