Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.96ms] Passed 4 tests
Analyzing server-side resources used by CaptureMyPage
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.72 ▼2.89 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.22 ▼5.15 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.10 ▼1.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.57 ▼12.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.17 ▼2.89 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for CaptureMyPage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.17 ▼0.24 | 1.85 ▲0.01 | 46.84 ▲2.88 |
Dashboard /wp-admin | 2,211 ▲31 | 5.61 ▼0.06 | 88.35 ▼10.27 | 39.60 ▼8.52 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 2.00 ▲0.06 | 42.09 ▲5.96 | 35.82 ▲0.76 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.20 ▲0.09 | 696.23 ▲25.85 | 63.21 ▲9.65 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.23 ▲0.09 | 102.65 ▼4.69 | 43.18 ▲1.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cmp/cmp.php:13
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== cmp ===
) - Screenshots: Please add images for these screenshots: #1 (Just put in the URL and click "Create Screenshot".), #2 (The image is saved to your media library. You may customize the image and insert to your post.)
cmp/cmp.php Passed 13 tests
This is the main PHP file of "CaptureMyPage" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
95 characters long description:
This plugin allows user to create a website screenshot in the content using only a website URL.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected594 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 98 | 206 | 594 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 75.00 |
▷ Minimum class complexity | 75.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 5.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 120.16KB | 43.68KB | ▼ 63.64% |
screenshot-1.png | 69.80KB | 24.29KB | ▼ 65.20% |