Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼10.23ms] Passed 4 tests
A check of server-side resources used by PostRemote
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.49 ▼4.04 |
Dashboard /wp-admin | 3.33 ▲0.02 | 53.10 ▲0.64 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.96 ▼11.57 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 86.24 ▼25.93 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 43.66 ▲5.62 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
category_children |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for PostRemote
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲102 | 13.39 ▼0.69 | 8.95 ▲6.89 | 44.11 ▼0.58 |
Dashboard /wp-admin | 2,211 ▲34 | 5.65 ▼0.03 | 95.26 ▼10.97 | 41.63 ▼3.41 |
Posts /wp-admin/edit.php | 2,137 ▲34 | 2.02 ▼0.01 | 33.64 ▼9.11 | 34.07 ▼3.18 |
Add New Post /wp-admin/post-new.php | 1,542 ▼3 | 23.14 ▲0.29 | 653.70 ▼8.78 | 68.88 ▲13.45 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.25 ▲0.12 | 109.07 ▼3.63 | 46.95 ▼0.99 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- category_children
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/voimada-rest-api/public/partials/voimadarestapi-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/voimada-rest-api/admin/partials/voimadarestapi-admin-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Post Remote API Endpoint. API Key to be copied. https://www.dropbox.com/s/x5aaxbv4b4vg3m6/screenshot12020-01-24at10.42.38.jpeg?dl=0), #2 (Voimada API key destination. Paste API key here. https://www.dropbox.com/s/mjp6roty4k3gwy8/screenshot2.png?dl=0)
- Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
voimada-rest-api/voimadarestapi.php 77% from 13 tests
The main PHP script in "PostRemote" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 194 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("voimada-rest-api.php" instead of "voimadarestapi.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected637 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 184 | 558 | 630 |
JavaScript | 2 | 4 | 54 | 6 |
Markdown | 1 | 0 | 0 | 1 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin