Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.06ms] Passed 4 tests
This is a short check of server-side resources used by REST API - Head Tags
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.04 | 40.73 ▲2.14 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.12 ▼0.80 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.81 ▲1.37 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 81.11 ▼11.35 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 33.70 ▼1.46 |
REST API - Head Tags /wp-admin/options-general.php?page=frontity-headtags | 3.22 | 36.12 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
frontity_headtags_settings |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
frontity_headtags_cache_token |
Browser metrics Passed 4 tests
A check of browser resources used by REST API - Head Tags
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.58 ▼1.00 | 1.85 ▲0.01 | 42.93 ▼3.21 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.96 | 99.93 ▼13.01 | 39.54 ▼3.71 |
Posts /wp-admin/edit.php | 2,090 ▲4 | 2.02 ▲0.04 | 40.24 ▲1.54 | 35.83 ▼1.89 |
Add New Post /wp-admin/post-new.php | 1,523 ▼19 | 23.41 ▲5.14 | 599.94 ▼48.32 | 56.85 ▲4.05 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▼0.10 | 94.06 ▼6.92 | 41.13 ▼5.15 |
REST API - Head Tags /wp-admin/options-general.php?page=frontity-headtags | 896 | 2.96 | 54.27 | 78.04 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rest-api-head-tags/plugin.php:21
- > PHP Fatal error
Uncaught Error: Class 'Frontity_Plugin' not found in wp-content/plugins/rest-api-head-tags/class-frontity-headtags-plugin.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: tags, yoast, meta, seo, api...
rest-api-head-tags/plugin.php 77% from 13 tests
This is the main PHP file of "REST API - Head Tags" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("rest-api-head-tags.php" instead of "plugin.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
Everything looks great! No dangerous files found in this plugin1,583 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 26 | 108 | 30 | 913 |
PHP | 11 | 184 | 591 | 632 |
Markdown | 1 | 29 | 0 | 31 |
JSON | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
A brief analysis 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.22 |
Average class complexity | 6.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 12 | 16.44% |
▷ Public methods | 69 | 94.52% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.48% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
6 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 5.76KB | 2.25KB | ▼ 61.00% |
assets/banner-772x250.png | 6.93KB | 2.10KB | ▼ 69.67% |
assets/banner-1544x500.png | 19.68KB | 4.17KB | ▼ 78.79% |
assets/screenshot-2.png | 102.80KB | 31.94KB | ▼ 68.94% |
assets/icon-128x128.png | 3.72KB | 1.75KB | ▼ 53.06% |