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.06MB] [CPU: ▼143.22ms] Passed 4 tests
A check of server-side resources used by Adapter Post Preview
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.06 | 34.58 ▼0.17 |
Dashboard /wp-admin | 3.12 ▲0.06 | 44.50 ▲0.94 |
Posts /wp-admin/edit.php | 3.20 ▲0.08 | 42.94 ▼12.82 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 91.19 ▼559.11 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 32.50 ▼0.76 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_adapter_post_preview |
Browser metrics Passed 4 tests
Adapter Post Preview: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,705 ▲92 | 15.99 ▲0.42 | 9.01 ▼3.64 | 48.93 ▲1.13 |
Dashboard /wp-admin | 2,967 ▲33 | 5.94 ▼0.03 | 138.90 ▼5.71 | 114.08 ▲0.06 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.00 | 62.64 ▼4.17 | 99.31 ▲5.47 |
Add New Post /wp-admin/post-new.php | 1,901 ▼1,788 | 19.24 ▲4.12 | 387.69 ▼63.20 | 103.61 ▼4.32 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.03 ▼0.00 | 140.56 ▼10.90 | 125.16 ▲7.22 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- widget_adapter_post_preview
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 no errors were found, this is by no means 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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adapter-post-preview/php/class-adapter-post-widget.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function AdapterPostPreview\\esc_attr() in wp-content/plugins/adapter-post-preview/php/templates/carousel.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function AdapterPostPreview\\plugins_url() in wp-content/plugins/adapter-post-preview/php/class-plugin.php:92
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: post, responsive, bootstrap, widgets, mobile
adapter-post-preview/adapter-post-preview.php 92% from 13 tests
The principal PHP file in "Adapter Post Preview" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 152 characters long)
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
No dangerous file extensions were detected317 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 57 | 234 | 235 |
CSS | 1 | 15 | 1 | 60 |
XML | 1 | 5 | 2 | 22 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin