Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼1.11ms] Passed 4 tests
Server-side resources used by Search My Theme
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 52.44 ▲13.99 |
Dashboard /wp-admin | 3.47 ▲0.17 | 49.21 ▼0.42 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 52.36 ▼2.00 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 100.52 ▼6.69 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.88 ▲4.66 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Search My Theme
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.28 ▼0.30 | 2.17 ▲0.37 | 39.75 ▼1.38 |
Dashboard /wp-admin | 2,211 ▲31 | 5.61 ▼0.02 | 91.65 ▲0.60 | 42.68 ▼6.24 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.00 ▲0.01 | 43.00 ▲7.44 | 37.61 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.27 ▲0.41 | 675.50 ▼5.67 | 54.60 ▲4.84 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.19 ▼0.15 | 98.93 ▼7.91 | 44.74 ▼1.51 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/search-my-theme/search-my-theme.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
search-my-theme/search-my-theme.php Passed 13 tests
The main PHP file in "Search My Theme" ver. 3.2.1 adds more information about the plugin and also serves as the entry point for this plugin
71 characters long description:
A wordpress plugin that lets you search for text within your templates.
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
No dangerous file extensions were detected902 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 114 | 86 | 902 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 185.00 |
▷ Minimum class complexity | 185.00 |
▷ Maximum class complexity | 185.00 |
Average method complexity | 5.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.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 | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/edit.png | 1.69KB | 0.59KB | ▼ 65.22% |
images/trash.png | 1.52KB | 0.70KB | ▼ 53.85% |
images/rate-me.png | 2.62KB | 1.53KB | ▼ 41.67% |