Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > User notice in wp-content/plugins/dsmirror/dsmirror-plugin-wp.php+42
Activated cron for dsmirror. Next run: 2023-10-02T12:11:56Z
Server metrics [RAM: ▲0.37MB] [CPU: ▼1.49ms] Passed 4 tests
Analyzing server-side resources used by DSmirror
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 38.39 ▼10.88 |
Dashboard /wp-admin | 3.70 ▲0.40 | 48.12 ▼0.67 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 46.61 ▲2.08 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 87.87 ▲3.52 |
Media Library /wp-admin/upload.php | 3.56 ▲0.34 | 39.26 ▲5.00 |
DSmirror /wp-admin/tools.php?page=dsmirror-plugin | 3.51 | 34.00 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by DSmirror
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.41 ▲0.11 | 1.72 ▼0.39 | 42.17 ▼5.61 |
Dashboard /wp-admin | 2,207 ▲16 | 5.83 ▼0.05 | 98.53 ▼12.98 | 38.13 ▼6.32 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.03 | 39.00 ▲3.20 | 31.63 ▼1.23 |
Add New Post /wp-admin/post-new.php | 1,547 ▲13 | 18.38 ▼4.84 | 592.57 ▼21.03 | 74.50 ▼0.31 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.21 ▲0.00 | 97.66 ▼5.61 | 41.62 ▼3.13 |
DSmirror /wp-admin/tools.php?page=dsmirror-plugin | 836 | 2.18 | 25.87 | 30.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-content/plugins/dsmirror/dsmirror-plugin-wp.php+51
Removed cron for dsmirror on plugin deactivation
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=dsmirror-plugin
- > User notice in wp-content/plugins/dsmirror/dsmirror/dsmirror-plugin-front.php+76
Initial replica config []
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dsmirror/dsmirror-plugin-wp.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Add an image for screenshot #2 (Just set your appId/secret and select the tables to replicate inbound and/or outbound.)
dsmirror/dsmirror-plugin-wp.php 92% from 13 tests
"DSmirror" version 1.01.04's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dsmirror.php" instead of "dsmirror-plugin-wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,616 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 118 | 166 | 1,616 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 7.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 1 | 5.00% |
Methods | 70 | |
▷ Static methods | 1 | 1.43% |
▷ Public methods | 58 | 82.86% |
▷ Protected methods | 4 | 5.71% |
▷ Private methods | 8 | 11.43% |
Functions | 25 | |
▷ Named functions | 23 | 92.00% |
▷ Anonymous functions | 2 | 8.00% |
Constants | 58 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 58 | 100.00% |
▷ Public constants | 58 | 100.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
No PNG files were detected