Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▲6.78ms] Passed 4 tests
Server-side resources used by Publisher Media Kit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.26 | 42.05 ▲7.52 |
Dashboard /wp-admin | 3.55 ▲0.24 | 49.65 ▲1.08 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 57.18 ▲12.87 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 99.35 ▲5.64 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 50.45 ▲13.28 |
Server storage [IO: ▲6.42MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 85 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
pmk-page |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Publisher Media Kit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.82 ▲0.19 | 6.16 ▲4.59 | 38.19 ▼4.88 |
Dashboard /wp-admin | 2,197 ▲20 | 5.50 ▼0.11 | 82.25 ▼4.76 | 40.94 ▼5.18 |
Posts /wp-admin/edit.php | 2,111 ▲29 | 2.02 ▲0.01 | 40.29 ▲3.49 | 34.49 ▼0.22 |
Add New Post /wp-admin/post-new.php | 1,665 ▲139 | 23.89 ▲0.13 | 600.64 ▼77.94 | 36.06 ▼20.78 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.29 ▲0.08 | 95.20 ▼13.48 | 41.72 ▼4.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- 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
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/publisher-media-kit/includes/block-patterns/digital-ad-specs.php
- > /wp-content/plugins/publisher-media-kit/includes/block-patterns/our-packages.php
- > /wp-content/plugins/publisher-media-kit/includes/block-patterns/stats.php
- > /wp-content/plugins/publisher-media-kit/includes/block-patterns/our-rates.php
- > /wp-content/plugins/publisher-media-kit/includes/block-patterns/question-block.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/publisher-media-kit/includes/block-patterns/cover.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/publisher-media-kit/includes/blocks/block-editor/tabs/markup.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/publisher-media-kit/includes/block-patterns/audience-profiles.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/publisher-media-kit/includes/block-patterns/why-digital.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/publisher-media-kit/includes/block-patterns/cover-esperanza.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/publisher-media-kit/publisher-media-kit.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: digital ad specs, audience profiles, media kit, ad rates
publisher-media-kit/publisher-media-kit.php 92% from 13 tests
The principal PHP file in "Publisher Media Kit" v. 1.3.3 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,851 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 258 | 668 | 1,107 |
JavaScript | 17 | 67 | 120 | 527 |
CSS | 5 | 38 | 0 | 139 |
JSON | 3 | 0 | 0 | 76 |
SVG | 2 | 0 | 0 | 2 |
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.37 |
Average class complexity | 19.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 20 | 45.45% |
▷ Public methods | 41 | 93.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.82% |
Functions | 30 | |
▷ Named functions | 23 | 76.67% |
▷ Anonymous functions | 7 | 23.33% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
16 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-512.png | 7.26KB | 3.92KB | ▼ 46.02% |
assets/images/icon-digital-1.png | 0.71KB | 0.71KB | 0.28% |
dist/images/icon-digital-2.png | 0.69KB | 0.66KB | ▼ 4.23% |
assets/images/icon-woman.png | 1.45KB | 1.54KB | 0.00% |
dist/images/icon-128.png | 1.52KB | 1.52KB | 0.00% |