84% output-buffer-tester

Code Review | Output Buffer Tester

WordPress plugin Output Buffer Tester scored84%from 54 tests.

About plugin

  • Plugin page: output-buffer-tester
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Feb 17, 2018
  • Latest release: Mar 28, 2018
  • Number of updates: 5
  • Update frequency: every 8.0 days
  • Top authors: nextendweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Output Buffer Tester
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.67 ▼3.25
Dashboard /wp-admin3.32 ▲0.0243.25 ▼6.24
Posts /wp-admin/edit.php3.37 ▲0.0247.66 ▲2.39
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.62 ▼5.37
Media Library /wp-admin/upload.php3.24 ▲0.0233.09 ▼3.58

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Output Buffer Tester
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8613.24 ▼1.131.89 ▼0.1940.67 ▼10.36
Dashboard /wp-admin2,224 ▲364.86 ▼0.03102.72 ▼14.2939.04 ▼9.93
Posts /wp-admin/edit.php2,110 ▲182.15 ▲0.1440.17 ▲2.0436.62 ▲4.07
Add New Post /wp-admin/post-new.php1,546 ▲1323.34 ▼0.14682.64 ▲15.0753.99 ▲0.21
Media Library /wp-admin/upload.php1,409 ▲244.24 ▲0.0797.65 ▼4.6442.17 ▼1.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/output-buffer-tester/output-buffer-tester.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: debug, debugging tool, output buffer

output-buffer-tester/output-buffer-tester.php Passed 13 tests

The main PHP file in "Output Buffer Tester" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
60 characters long description:
This plugin helps to identify full page output buffer issues

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected85 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1301085

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin