Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.24MB] [CPU: ▼14.16ms] Passed 4 tests
An overview of server-side resources used by A Smart Excerpt
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.84 ▼2.62 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.79 ▼2.95 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 52.72 ▼3.85 |
Add New Post /wp-admin/post-new.php | 4.69 ▼1.20 | 45.80 ▼47.21 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.73 ▲4.82 |
Smart Excerpt /wp-admin/options-general.php?page=smaExc_plugin | 3.27 | 33.84 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for A Smart Excerpt
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲66 | 13.26 ▼1.12 | 1.90 ▲0.24 | 52.59 ▲10.09 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼0.05 | 107.92 ▲5.40 | 40.32 ▼3.06 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.01 ▼0.02 | 39.39 ▼5.01 | 34.40 ▼3.35 |
Add New Post /wp-admin/post-new.php | 1,422 ▼113 | 22.30 ▼0.88 | 560.92 ▼127.64 | 44.41 ▼18.38 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▲0.03 | 100.71 ▼1.05 | 44.17 ▼3.16 |
Smart Excerpt /wp-admin/options-general.php?page=smaExc_plugin | 1,030 | 2.07 | 26.71 | 28.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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 require attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Screenshots: Please 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
The principal PHP file in "A Smart Excerpt" v. 1.4 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal 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 must use dashes instead of underscores, and it must be lowercase
- Domain Path: The domain path folder does not exist ("/lang")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 188 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this 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
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
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
No PNG files were detected