84% tailored-easy-exclude

Code Review | Tailored Easy Exclude

WordPress plugin Tailored Easy Exclude scored 84% from 54 tests.

About plugin

  • Plugin page: tailored-easy-exc...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 26, 2014
  • Latest release: Jun 26, 2014
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: zugrina (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active / 2,912 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.31ms] Passed 4 tests

Analyzing server-side resources used by Tailored Easy Exclude
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.24 ▲1.94
Dashboard /wp-admin3.33 ▲0.0347.72 ▲1.53
Posts /wp-admin/edit.php3.38 ▲0.0346.94 ▲0.37
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.35 ▼2.61
Media Library /wp-admin/upload.php3.25 ▲0.0341.67 ▲11.59
Tailored Easy Exclude /wp-admin/options-general.php?page=tailored-easy-exclude3.2740.80

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tailored Easy Exclude
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.22 ▼1.181.74 ▼0.0445.14 ▼2.27
Dashboard /wp-admin2,213 ▲254.87 ▼0.0397.21 ▼2.8140.10 ▼5.19
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0336.37 ▲3.2334.26 ▼1.30
Add New Post /wp-admin/post-new.php1,539 ▲523.26 ▲0.02648.03 ▼11.0151.02 ▼1.02
Media Library /wp-admin/upload.php1,389 ▼24.19 ▼0.0296.01 ▲0.2842.23 ▼0.93
Tailored Easy Exclude /wp-admin/options-general.php?page=tailored-easy-exclude8712.0133.1831.33

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tailored-easy-exclude/admin/views/admin.php:21

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: exclude posts, exclude admin page, exclude page, exclude

tailored-easy-exclude/tailored-easy-exclude.php 92% from 13 tests

"Tailored Easy Exclude" version 1.1'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:
  • Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin768 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS11025400
PHP5187288358
JavaScript24210

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity22.00
▷ Minimum class complexity11.00
▷ Maximum class complexity33.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods728.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
admin/assets/img/chosen-sprite.png0.63KB0.88KB0.00%