Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼7.10ms] Passed 4 tests
Analyzing server-side resources used by Copy Post
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 42.01 ▲0.27 |
Dashboard /wp-admin | 3.54 ▲0.19 | 49.92 ▼9.77 |
Posts /wp-admin/edit.php | 3.66 ▲0.29 | 49.46 ▼1.78 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 91.95 ▼14.64 |
Media Library /wp-admin/upload.php | 3.47 ▲0.23 | 40.63 ▼2.22 |
Settings /wp-admin/admin.php?page=ipressgo-copy-post-settings | 3.43 | 36.86 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Copy Post
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.72 ▲0.37 | 1.78 ▲0.01 | 41.40 ▼6.04 |
Dashboard /wp-admin | 2,210 ▲36 | 5.51 ▼0.05 | 84.84 ▼7.49 | 83.41 ▲41.63 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.98 ▲0.02 | 34.81 ▼2.89 | 34.95 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.04 ▲0.05 | 759.22 ▲104.58 | 56.82 ▲6.88 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.23 ▲0.06 | 101.36 ▼8.00 | 71.43 ▲21.66 |
Settings /wp-admin/admin.php?page=ipressgo-copy-post-settings | 861 | 2.14 | 23.55 | 24.82 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/copy-posts/inc/class-ipgs-admin.php
- > /wp-content/plugins/copy-posts/inc/class-ipgs-job.php
- > /wp-content/plugins/copy-posts/inc/class-ipgs-db.php
- > /wp-content/plugins/copy-posts/templates/admin-support.php
- > /wp-content/plugins/copy-posts/templates/admin-settings.php
- > /wp-content/plugins/copy-posts/inc/class-ipgs-rest-connect.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/copy-posts/templates/admin-jobs.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/copy-posts/templates/admin-main.php:2
- > 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 Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: copy posts, syndication, copy job, schedule posts
copy-posts/ipressgo-copy-post.php 77% from 13 tests
This is the main PHP file of "Copy Post" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("copy-posts.php" instead of "ipressgo-copy-post.php")
- Description: The description should be shorter than 140 characters (currently 144 characters long)
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
Everything looks great! No dangerous files found in this plugin1,889 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 320 | 179 | 1,324 |
CSS | 1 | 15 | 9 | 342 |
JavaScript | 1 | 18 | 17 | 223 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 35.40 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 1 | 20.00% |
Methods | 62 | |
▷ Static methods | 5 | 8.06% |
▷ Public methods | 53 | 85.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 14.52% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/ipressgo-icon.png | 0.64KB | 0.80KB | 0.00% |