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.05MB] [CPU: ▼6.27ms] Passed 4 tests
A check of server-side resources used by Mapping of image posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.00 ▼10.00 |
Dashboard /wp-admin | 3.36 ▲0.05 | 56.83 ▲9.80 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 52.34 ▲1.23 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 87.28 ▼15.90 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.93 ▼0.39 |
Mapping /wp-admin/tools.php?page=mapping-of-image-posts/mapping-of-image-posts.php | 3.25 | 37.31 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 9 new options
New WordPress options |
---|
moip_image_type |
theysaidso_admin_options |
moip_out_file_type |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
MOIP_MAX_ATTACHMENTS_PER_SCAN |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Mapping of image posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.32 ▼1.27 | 1.60 ▼0.91 | 40.35 ▼5.44 |
Dashboard /wp-admin | 2,215 ▲27 | 4.90 ▲0.01 | 110.78 ▲10.32 | 38.28 ▼6.55 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.05 ▲0.01 | 35.77 ▼5.11 | 34.10 ▼2.13 |
Add New Post /wp-admin/post-new.php | 1,537 ▲17 | 23.27 ▲0.07 | 655.55 ▼11.37 | 51.74 ▼5.59 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.24 ▲0.04 | 100.47 ▼1.07 | 43.72 ▼3.58 |
Mapping /wp-admin/tools.php?page=mapping-of-image-posts/mapping-of-image-posts.php | 814 | 2.03 | 23.99 | 24.78 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mapping-of-image-posts/mapping-of-image-posts.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
mapping-of-image-posts/mapping-of-image-posts.php Passed 13 tests
The main PHP file in "Mapping of image posts" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
Generate a mapping of image - article it belongs, by scanning all attachments.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin352 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 63 | 13 | 299 |
JavaScript | 1 | 6 | 0 | 44 |
CSS | 1 | 2 | 0 | 6 |
Markdown | 1 | 1 | 0 | 3 |
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.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected