Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.24MB] [CPU: ▼307.48ms] Passed 4 tests
An overview of server-side resources used by A Smart Excerpt
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 56.93 ▲2.33 |
Dashboard /wp-admin | 3.50 ▲0.10 | 35.81 ▲0.79 |
Posts /wp-admin/edit.php | 3.73 ▲0.10 | 41.23 ▲3.91 |
Add New Post /wp-admin/post-new.php | 5.75 ▼1.25 | 58.18 ▼1,235.92 |
Media Library /wp-admin/upload.php | 3.39 ▲0.09 | 25.82 ▲2.89 |
Smart Excerpt /wp-admin/options-general.php?page=smaExc_plugin | 3.33 | 26.09 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for A Smart Excerpt
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲46 | 15.88 ▲0.24 | 5.91 ▲0.25 | 2.19 ▼0.52 |
Dashboard /wp-admin | 2,894 ▲33 | 6.12 ▲0.03 | 117.69 ▼14.89 | 155.26 ▼6.18 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.26 ▲0.01 | 63.92 ▼0.15 | 141.18 ▼5.45 |
Add New Post /wp-admin/post-new.php | 1,682 ▲21 | 21.23 ▲4.58 | 385.45 ▼37.86 | 183.40 ▲26.12 |
Media Library /wp-admin/upload.php | 1,706 ▲11 | 5.51 ▼0.01 | 141.92 ▼6.27 | 183.37 ▼8.57 |
Smart Excerpt /wp-admin/options-general.php?page=smaExc_plugin | 1,379 | 2.38 | 56.70 | 126.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=smaExc_plugin
- > Warning in wp-content/plugins/a-smart-excerpt/smart-excerpt.php+465
in_array() expects parameter 2 to be array, bool given
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 79% 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
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Screenshots: Add images for these screenshots: #1 (The admin panel 1), #2 (The admin panel 2)
a-smart-excerpt/smart-excerpt.php 69% from 13 tests
"A Smart Excerpt" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("a-smart-excerpt.php" instead of "smart-excerpt.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Description: The description should be shorter than 140 characters (currently 188 characters long)
- Domain Path: The domain path points to a folder that does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected408 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 40 | 70 | 408 |
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.58 |
Average class complexity | 67.00 |
▷ Minimum class complexity | 67.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 7.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 5 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 50.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
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