94% wp-doge-mode

Code Review | Doge Mode

WordPress plugin Doge Mode scored 94% from 54 tests.

About plugin

  • Plugin page: wp-doge-mode
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.6
  • WordPress version: 5.8.1
  • First release: Sep 30, 2015
  • Latest release: Aug 19, 2016
  • Number of updates: 7
  • Update frequency: every 46.1 days
  • Top authors: LukasNeptun (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 914 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼147.76ms] Passed 4 tests

This is a short check of server-side resources used by Doge Mode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0132.06 ▼0.04
Dashboard /wp-admin3.08 ▲0.0244.27 ▼3.53
Posts /wp-admin/edit.php3.13 ▲0.0241.87 ▼10.93
Add New Post /wp-admin/post-new.php5.43 ▼0.0087.29 ▼574.85
Media Library /wp-admin/upload.php3.02 ▲0.0130.32 ▼1.72

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Doge Mode: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,859 ▲26316.37 ▲0.8315.00 ▲5.0467.67 ▲16.07
Dashboard /wp-admin2,980 ▲495.89 ▼0.14136.39 ▼26.93113.88 ▼3.09
Posts /wp-admin/edit.php2,749 ▲102.72 ▲0.0163.54 ▼7.1389.20 ▼9.52
Add New Post /wp-admin/post-new.php1,875 ▲37719.15 ▲0.31361.13 ▼17.96108.39 ▼8.95
Media Library /wp-admin/upload.php1,820 ▲135.02 ▼0.03166.40 ▲25.70114.71 ▼2.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-doge-mode/wp-doge-mode.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
10 plugin tags: mode, useless, dogs, doge, waste of time...

wp-doge-mode/wp-doge-mode.php Passed 13 tests

The main PHP file in "Doge Mode" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
Turns your website in to doge mode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected86 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1142585
JavaScript1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods375.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
PNG images were not found in this plugin