Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.53ms] Passed 4 tests
A check of server-side resources used by GSY Content Filter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.82 ▲1.67 |
Dashboard /wp-admin | 3.44 ▲0.13 | 45.16 ▼3.00 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 47.31 ▲2.81 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 82.15 ▼11.41 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.13 ▼1.38 |
GSY Content Filter /wp-admin/options-general.php?page=gsy-content-filter | 3.33 | 31.96 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for GSY Content Filter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲74 | 13.25 ▼1.12 | 2.01 ▼0.01 | 43.54 ▼2.37 |
Dashboard /wp-admin | 2,215 ▲27 | 4.87 ▲0.01 | 108.34 ▲5.94 | 37.76 ▼3.75 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.04 ▲0.05 | 40.60 ▲7.37 | 34.40 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 23.21 ▲0.12 | 578.80 ▼104.07 | 53.56 ▼9.99 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.21 ▲0.03 | 95.01 ▼1.49 | 41.79 ▼6.06 |
GSY Content Filter /wp-admin/options-general.php?page=gsy-content-filter | 1,816 | 1.70 | 29.30 | 53.60 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gsy-content-filter/includes/class-gsy-content-filter.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
gsy-content-filter/gsy-content-filter.php Passed 13 tests
The entry point to "GSY Content Filter" version 1.0 is a PHP file that has certain tags in its header comment area
63 characters long description:
Filter words from the title, content, excerpt or tags in posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin443 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 67 | 72 | 262 |
JavaScript | 1 | 33 | 10 | 86 |
PO File | 2 | 18 | 20 | 70 |
CSS | 1 | 2 | 0 | 25 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin