Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/primer-by-chloedigital/database_changes.php+16
count(): Parameter must be an array or an object that implements Countable
Server metrics [RAM: ▲0.20MB] [CPU: ▼1.66ms] Passed 4 tests
A check of server-side resources used by PRIMER by chloédigital
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 37.76 ▼3.14 |
Dashboard /wp-admin | 3.50 ▲0.20 | 46.77 ▼0.28 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 47.43 ▼4.04 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 95.93 ▲0.84 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 38.69 ▲3.59 |
Server storage [IO: ▲2.61MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_primer_data |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
my_db_version |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for PRIMER by chloédigital
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲110 | 13.22 ▼1.07 | 4.51 ▲2.36 | 39.90 ▼5.16 |
Dashboard /wp-admin | 2,234 ▲46 | 5.94 ▼0.04 | 97.82 ▼22.03 | 87.68 ▲42.40 |
Posts /wp-admin/edit.php | 2,146 ▲57 | 2.25 ▲0.20 | 34.42 ▼0.52 | 37.11 ▲3.10 |
Add New Post /wp-admin/post-new.php | 6,707 ▲5,173 | 23.27 ▲0.21 | 945.25 ▲270.36 | 54.48 ▼15.67 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.34 ▲0.11 | 100.95 ▼9.53 | 84.33 ▲40.59 |
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
- Zombie tables detected upon uninstall: 1 table
- wp_primer_data
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- my_db_version
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/primer-by-chloedigital/public/partials/primer-by-chloedigital-public-display.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/primer-by-chloedigital/admin/inc/notifications.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/primer-by-chloedigital/admin/inc/post-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/primer-by-chloedigital/admin/partials/global-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/primer-by-chloedigital/admin/class-primer-by-chloedigital-admin.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/primer-by-chloedigital/includes/class-primer-by-chloedigital-activator.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/primer-by-chloedigital/admin/partials/primer-settings.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/primer-by-chloedigital/admin/inc/save-global-data.php:125
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/primer-by-chloedigital/admin/partials/global-settings.php:3
- > 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 94% from 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
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== PRIMER by chloédigital ===
)
primer-by-chloedigital/primer-by-chloedigital.php 92% from 13 tests
The main file in "PRIMER by chloédigital" v. 1.0.25 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,260 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 272 | 649 | 1,350 |
CSS | 2 | 87 | 17 | 765 |
JavaScript | 5 | 12 | 95 | 95 |
SVG | 5 | 0 | 3 | 50 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 21 | |
▷ Named functions | 19 | 90.48% |
▷ Anonymous functions | 2 | 9.52% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 PNG files occupy 1.93MB with 1.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 114.79KB | 44.27KB | ▼ 61.44% |
admin/partials/Primer-Instagram.png | 20.57KB | 11.21KB | ▼ 45.53% |
assets/screenshot-3.png | 86.25KB | 19.25KB | ▼ 77.68% |
assets/banner-772x500.png | 39.30KB | 15.95KB | ▼ 59.41% |
admin/partials/Primer-Facebook.png | 25.47KB | 15.59KB | ▼ 38.79% |