Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼335.50ms] Passed 4 tests
This is a short check of server-side resources used by RESTposts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.60 ▲5.36 |
Dashboard /wp-admin | 3.41 ▲0.00 | 31.55 ▼1.35 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 44.12 ▲6.80 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.09 | 92.45 ▼1,342.84 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 22.84 ▼3.18 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for RESTposts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲19 | 16.25 ▲0.50 | 6.31 ▲0.52 | 2.28 ▼0.07 |
Dashboard /wp-admin | 2,895 ▲41 | 6.13 ▼0.03 | 118.13 ▼16.17 | 156.57 ▲0.70 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.23 ▲0.00 | 65.39 ▲0.15 | 139.53 ▲1.16 |
Add New Post /wp-admin/post-new.php | 1,668 ▼90 | 18.20 ▼4.00 | 383.59 ▼77.34 | 160.09 ▲0.88 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.45 ▼0.09 | 145.57 ▲0.25 | 200.20 ▲10.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: There are too many tags (19 tag instead of maximum 10)
restposts/rest-posts.php 92% from 13 tests
The entry point to "RESTposts" version 1.1.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("restposts.php" instead of "rest-posts.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 plugin1,029 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 200 | 223 | 793 |
CSS | 2 | 41 | 49 | 196 |
JavaScript | 1 | 10 | 20 | 40 |
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.34 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 10.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 19 | 95.00% |
▷ Anonymous functions | 1 | 5.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin