Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.88ms] Passed 4 tests
Analyzing server-side resources used by CMS Blocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.93 ▼1.48 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.09 ▼7.01 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.92 ▲4.84 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 91.02 ▲0.93 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.63 ▲0.03 |
All CMS Blocks /wp-admin/edit.php?post_type=cms-block | 3.30 | 37.70 |
Add New /wp-admin/post-new.php?post_type=cms-block | 3.37 | 46.86 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_elsnercmsblock |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for CMS Blocks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.10 ▼1.19 | 1.81 ▼0.01 | 41.78 ▼2.14 |
Dashboard /wp-admin | 2,236 ▲48 | 4.87 ▼1.04 | 106.71 ▼11.30 | 39.70 ▼4.14 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 1.99 ▼0.03 | 39.69 ▲5.16 | 35.69 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 17.70 ▼5.68 | 608.40 ▼63.76 | 48.02 ▼9.98 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.18 ▲0.01 | 95.79 ▼3.66 | 41.53 ▼4.07 |
All CMS Blocks /wp-admin/edit.php?post_type=cms-block | 1,097 | 1.94 | 30.77 | 27.32 |
Add New /wp-admin/post-new.php?post_type=cms-block | 2,163 | 7.58 | 163.57 | 58.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_elsnercmsblock
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cms-blocks/index.php:10
- > 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)
No browser issues were found
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
5 plugin tags: block, block content, reusable content, static block, cms block
cms-blocks/index.php 92% from 13 tests
The main file in "CMS Blocks" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cms-blocks.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin144 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 9 | 144 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin