Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼261.57ms] Passed 4 tests
An overview of server-side resources used by Post Show
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 25.58 ▲4.10 |
Dashboard /wp-admin | 3.08 ▲0.02 | 42.91 ▼0.05 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 46.72 ▲2.83 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 90.20 ▼1,041.87 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 30.86 ▼7.17 |
Server storage [IO: ▲0.08MB] [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: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Show
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲157 | 16.18 ▲0.64 | 11.17 ▲3.56 | 53.54 ▲1.37 |
Dashboard /wp-admin | 2,934 ▲81 | 5.98 ▲0.15 | 158.09 ▲29.69 | 108.49 ▲8.35 |
Posts /wp-admin/edit.php | 2,703 ▼3 | 2.70 ▲0.01 | 64.77 ▲1.41 | 88.75 ▲9.27 |
Add New Post /wp-admin/post-new.php | 1,853 ▼0 | 19.09 ▲0.04 | 377.35 ▲5.09 | 108.37 ▼2.11 |
Media Library /wp-admin/upload.php | 1,778 ▲3 | 5.09 ▲0.10 | 139.63 ▼9.63 | 115.21 ▼4.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/c4d-post-show/templates/default.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/c4d-post-show/c4d-post-show.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function post_class() in wp-content/plugins/c4d-post-show/templates/__item.php:1
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
c4d-post-show/c4d-post-show.php Passed 13 tests
This is the main PHP file of "Post Show" version 2.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
116 characters long description:
List posts with grid, slider, mansory. Please install C4D Plugin Manager and Redux Framework to enable all features.
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 plugin263 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 22 | 9 | 151 |
Sass | 1 | 0 | 0 | 111 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected