Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼10.36ms] Passed 4 tests
An overview of server-side resources used by GDY Modular Content
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.81 ▼7.55 |
Dashboard /wp-admin | 3.37 ▲0.03 | 45.36 ▼14.38 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.05 ▼1.15 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.92 ▼16.23 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.42 ▼3.29 |
Server storage [IO: ▲1.12MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 62 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
gdymc_installation_date |
widget_recent-comments |
gdymc_plugin_version |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GDY Modular Content
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲207 | 14.57 ▲0.37 | 28.45 ▲26.86 | 73.93 ▲37.49 |
Dashboard /wp-admin | 2,195 ▲14 | 5.51 ▼0.21 | 82.62 ▼27.66 | 43.22 ▲3.37 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.99 ▲0.04 | 36.65 ▲0.35 | 34.59 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 22.97 ▼0.31 | 666.35 ▼26.49 | 61.04 ▲0.11 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.05 | 99.46 ▼9.90 | 45.94 ▼1.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- gdymc_installation_date
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- gdymc_plugin_version
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 take a closer look at the following
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
imagefill() expects parameter 1 to be resource, bool given in wp-content/plugins/gdy-modular-content/includes/placeholder.php on line 14
- > PHP Warning
imagecreatetruecolor(): Invalid image dimensions in wp-content/plugins/gdy-modular-content/includes/placeholder.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gdy-modular-content/hooks/translation.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/gdy-modular-content/includes/modulelist.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gdy-modular-content/includes/editlock.php:90
- > PHP Warning
imagedestroy() expects parameter 1 to be resource, bool given in wp-content/plugins/gdy-modular-content/includes/placeholder.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdy-modular-content/includes/version.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdy-modular-content/includes/ajax.php:6
- > PHP Warning
imagepng() expects parameter 1 to be resource, bool given in wp-content/plugins/gdy-modular-content/includes/placeholder.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gdy-modular-content/hooks/miscellaneous.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: gdy modular content, frontend editing, content editable, modular content, content management...
gdy-modular-content/gdy-modular-content.php Passed 13 tests
Analyzing the main PHP file in "GDY Modular Content" version 0.9.88
63 characters long description:
Create and edit modular content from the frontend of your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected20,103 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 2,987 | 1,114 | 12,354 |
Sass | 7 | 1,070 | 13 | 5,334 |
PHP | 16 | 2,950 | 540 | 1,961 |
PO File | 1 | 379 | 974 | 383 |
SVG | 6 | 0 | 6 | 64 |
CSS | 7 | 0 | 7 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 116 | |
▷ Named functions | 112 | 96.55% |
▷ Anonymous functions | 4 | 3.45% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/stripe.png | 1.27KB | 0.16KB | ▼ 87.07% |
images/transparent.png | 0.51KB | 0.10KB | ▼ 80.77% |