94% dont-stage-me-bro

Code Review | Don't Stage Me Bro!

WordPress plugin Don't Stage Me Bro! scored 94% from 54 tests.

About plugin

  • Plugin page: dont-stage-me-bro
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.6.1
  • WordPress version: 5.8.1
  • First release: Sep 28, 2016
  • Latest release: Oct 9, 2016
  • Number of updates: 6
  • Update frequency: every 2.0 days
  • Top authors: joshlimecuda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 830 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Don't Stage Me Bro!
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0032.47 ▲5.75
Dashboard /wp-admin3.06 ▲0.0043.59 ▼5.55
Posts /wp-admin/edit.php3.11 ▲0.0043.67 ▼2.12
Add New Post /wp-admin/post-new.php5.42 ▼0.0191.46 ▼557.86
Media Library /wp-admin/upload.php3.00 ▼0.0135.00 ▼4.70

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Don't Stage Me Bro!
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.92 ▲0.279.17 ▼2.7244.42 ▼1.53
Dashboard /wp-admin2,967 ▲365.87 ▼0.17131.73 ▼28.31109.88 ▼2.46
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0064.83 ▼5.8792.73 ▲3.81
Add New Post /wp-admin/post-new.php1,683 ▲8918.48 ▼0.30395.59 ▼93.53118.54 ▲6.92
Media Library /wp-admin/upload.php1,807 ▼05.05 ▼0.05156.10 ▼2.60115.27 ▼1.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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
Good news, no errors were detected

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function LC_Dont_Stage_Me\\Assets\\add_action() in wp-content/plugins/dont-stage-me-bro/includes/assets.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function LC_Dont_Stage_Me\\Assets\\add_action() in wp-content/plugins/dont-stage-me-bro/includes/assets.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: staging, hosting, notice, team development

dont-stage-me-bro/dont-stage-me-bro.php 92% from 13 tests

"Don't Stage Me Bro!" version 0.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected127 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods111.11%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin