83% genesis-dambuster

Code Review | Genesis Dambuster

WordPress plugin Genesis Dambuster scored 83% from 54 tests.

About plugin

  • Plugin page: genesis-dambuster
  • Plugin version: 1.11.0
  • PHP compatiblity: 5.3.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.1.1
  • WordPress version: 6.3.1
  • First release: Aug 1, 2015
  • Latest release: Mar 28, 2019
  • Number of updates: 48
  • Update frequency: every 27.8 days
  • Top authors: powerblogservice (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

7,000+ active / 97,301 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Genesis Dambuster
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.76 ▼2.13
Dashboard /wp-admin3.31 ▲0.0045.39 ▼1.02
Posts /wp-admin/edit.php3.36 ▲0.0041.92 ▼5.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.36 ▼11.90
Media Library /wp-admin/upload.php3.23 ▲0.0035.36 ▼0.15

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Genesis Dambuster: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.60 ▼0.761.78 ▲0.2043.60 ▼3.37
Dashboard /wp-admin2,209 ▲214.86 ▼0.0598.63 ▼6.4439.00 ▼3.39
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0334.85 ▼1.5332.98 ▼2.23
Add New Post /wp-admin/post-new.php1,533 ▲1923.41 ▲5.80659.76 ▼31.1553.14 ▼5.05
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.07100.85 ▼2.5043.01 ▼2.69

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 46× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Dambuster_Template' not found in wp-content/plugins/genesis-dambuster/classes/class-digital.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Dambuster_Template' not found in wp-content/plugins/genesis-dambuster/classes/class-eleven40.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Dambuster_Template' not found in wp-content/plugins/genesis-dambuster/classes/class-agency.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Dambuster_Template' not found in wp-content/plugins/genesis-dambuster/classes/class-pretty-chic.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Dambuster_Template' not found in wp-content/plugins/genesis-dambuster/classes/class-altitude.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Dambuster_Template' not found in wp-content/plugins/genesis-dambuster/classes/class-decor.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Dambuster_Template' not found in wp-content/plugins/genesis-dambuster/classes/class-ambiance.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Dambuster_Template' not found in wp-content/plugins/genesis-dambuster/classes/class-prose.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Dambuster_Template' not found in wp-content/plugins/genesis-dambuster/classes/class-smart-passive-income.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Genesis_Dambuster_Template' not found in wp-content/plugins/genesis-dambuster/classes/class-revolution.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5 in genesis-dambuster/assets to your readme.txt
The official readme.txt is a good inspiration

genesis-dambuster/main.php 85% from 13 tests

The main file in "Genesis Dambuster" v. 1.11.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("genesis-dambuster.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,922 lines of code in 64 files:
LanguageFilesBlank linesComment linesLines of code
PHP55512262,685
CSS7120187
JavaScript21350

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.43
▷ Minimum class complexity1.00
▷ Maximum class complexity178.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes53
▷ Abstract classes11.89%
▷ Concrete classes5298.11%
▷ Final classes00.00%
Methods391
▷ Static methods10.26%
▷ Public methods38097.19%
▷ Protected methods10.26%
▷ Private methods102.56%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants969.23%
▷ Class constants430.77%
▷ Public constants4100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
styles/images/genesisdambuster.png5.43KB2.30KB▼ 57.59%
images/genesisdambuster.png5.43KB2.30KB▼ 57.59%
styles/images/genesis-club-brand.png2.36KB1.28KB▼ 45.50%