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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.21ms] Passed 4 tests
This is a short check of server-side resources used by SmartAsset Captivate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.61 ▲1.95 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.53 ▲0.51 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.24 ▲3.27 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.79 ▼1.47 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.05 ▼0.16 |
SmartAsset Captivate /wp-admin/options-general.php?page=smartasset_plugin | 3.23 | 31.91 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options |
---|
sa_allow_auto |
sa_advanced |
widget_recent-comments |
can_compress_scripts |
sa_ex_categories |
sa_placement |
db_upgraded |
sa_section |
widget_theysaidso_widget |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Checking browser requirements for SmartAsset Captivate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 13.32 ▲0.12 | 4.18 ▲2.61 | 42.65 ▲2.40 |
Dashboard /wp-admin | 2,210 ▲4 | 5.85 ▲1.02 | 106.29 ▼3.03 | 42.71 ▼1.41 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 1.97 ▼0.06 | 39.56 ▼0.10 | 34.85 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 22.99 ▲4.84 | 636.48 ▲14.58 | 47.09 ▼11.55 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.22 ▲0.04 | 92.61 ▼6.24 | 42.15 ▼2.43 |
SmartAsset Captivate /wp-admin/options-general.php?page=smartasset_plugin | 1,037 | 2.07 | 24.37 | 33.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 11 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- sa_allow_auto
- sa_ex_categories
- sa_placement
- sa_section
- sa_advanced
- db_upgraded
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please 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 plugin_dir_path() in wp-content/plugins/captivate-by-smartasset/smartasset-captivate.php:60
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== captivate-by-smartasset ===
) - Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
captivate-by-smartasset/smartasset-captivate.php 92% from 13 tests
The principal PHP file in "SmartAsset Captivate" v. 0.14.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("captivate-by-smartasset.php" instead of "smartasset-captivate.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 plugin539 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 140 | 339 | 539 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 36.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There were not PNG files found in your plugin