Benchmarks
Plugin footprint 58% 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
You still need to fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/wp-show-category-posts/wp-show-category-posts.php+15
Use of undefined constant wpscp_nop - assumed 'wpscp_nop' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.86ms] Passed 4 tests
A check of server-side resources used by wp show category posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.78 ▲2.69 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.42 ▼6.18 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.23 ▼10.36 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.88 ▼18.00 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.92 ▼4.88 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 17 new options
New WordPress options |
---|
wpscp_enable |
wpscp_title_enable |
wpscp_mnop |
wpscp_readmore_enable |
wpscp_nop |
wpscp_date_enable |
can_compress_scripts |
db_upgraded |
wpscp_readmore |
wpscp_thumbnail_enable |
... |
Browser metrics Passed 4 tests
wp show category posts: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 13.22 ▼1.34 | 1.79 ▲0.08 | 43.82 ▲0.77 |
Dashboard /wp-admin | 2,239 ▲33 | 5.88 ▼0.03 | 106.46 ▲0.03 | 83.61 ▲40.19 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.01 ▼0.02 | 34.86 ▼5.66 | 34.43 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,539 ▲7 | 23.17 ▲0.14 | 774.67 ▲127.95 | 55.12 ▲2.72 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.30 ▲0.01 | 102.17 ▼11.58 | 71.96 ▲24.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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 fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-show-category-posts/wp-show-category-posts.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (User view after installation), #2 (Admin setting page)
wp-show-category-posts/wp-show-category-posts.php Passed 13 tests
Analyzing the main PHP file in "wp show category posts" version 0.1
75 characters long description:
shows any category posts in widget , page or post, have shortcode [wpscp]
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected192 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 55 | 19 | 182 |
CSS | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 88.32KB | 40.71KB | ▼ 53.91% |
screenshot-1.png | 10.45KB | 5.91KB | ▼ 43.45% |
images/icon.png | 3.46KB | 0.64KB | ▼ 81.51% |