90% wp-breathe

Code Review | WP Breathe

WordPress plugin WP Breathe scored90%from 54 tests.

About plugin

  • Plugin page: wp-breathe
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.5.0
  • WordPress version: 6.3.1
  • First release: Jun 27, 2016
  • Latest release: Jun 22, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: JoeFusco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /579 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.74ms] Passed 4 tests

Server-side resources used by WP Breathe
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.63 ▲3.53
Dashboard /wp-admin3.31 ▲0.0144.44 ▼9.71
Posts /wp-admin/edit.php3.36 ▲0.0047.64 ▼0.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.22 ▼8.99
Media Library /wp-admin/upload.php3.23 ▲0.0033.61 ▲0.24

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Breathe
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4914.48 ▲0.261.78 ▼0.2244.18 ▼0.09
Dashboard /wp-admin2,209 ▲215.85 ▼0.04107.61 ▲7.0139.83 ▼1.41
Posts /wp-admin/edit.php2,107 ▲182.00 ▼0.0141.24 ▲0.3335.25 ▼0.45
Add New Post /wp-admin/post-new.php1,531 ▲1122.95 ▼0.34706.00 ▲34.0784.70 ▲28.94
Media Library /wp-admin/upload.php1,394 ▲64.25 ▲0.0396.94 ▼2.6841.28 ▼4.80

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: warning, production, development

wp-breathe/wp-breathe.php Passed 13 tests

The main PHP file in "WP Breathe" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
76 characters long description:
Easily identify a production site by literally making it breathe for admins.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin39 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS12028
PHP151311

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected