84% our-programs-by-wowdevshop

Code Review | Our Programs by WOWDevShop

WordPress plugin Our Programs by WOWDevShop scored84%from 54 tests.

About plugin

  • Plugin page: our-programs-by-w...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9
  • WordPress version: 6.3.1
  • First release: Jan 4, 2016
  • Latest release: Apr 18, 2018
  • Number of updates: 16
  • Update frequency: every 52.2 days
  • Top authors: XicoOfficial (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.30ms] Passed 4 tests

Analyzing server-side resources used by Our Programs by WOWDevShop
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1367.93 ▲28.94
Dashboard /wp-admin3.36 ▲0.0546.68 ▼5.98
Posts /wp-admin/edit.php3.41 ▲0.0552.72 ▲0.49
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.02 ▼8.42
Media Library /wp-admin/upload.php3.28 ▲0.0540.69 ▲4.71
Program Category /wp-admin/edit-tags.php?taxonomy=program-category&post_type=program3.2834.58
Add New Program /wp-admin/post-new.php?post_type=program3.4453.69
All Programs /wp-admin/edit.php?post_type=program3.3242.03

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Our Programs by WOWDevShop
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.22 ▼1.081.87 ▼0.0439.21 ▲0.24
Dashboard /wp-admin2,237 ▲464.85 ▼0.05111.39 ▲5.5243.60 ▲0.21
Posts /wp-admin/edit.php2,120 ▲312.05 ▲0.0639.12 ▼0.1135.43 ▼4.89
Add New Post /wp-admin/post-new.php1,572 ▲5323.51 ▲0.42624.85 ▼91.3594.19 ▲35.16
Media Library /wp-admin/upload.php1,422 ▲314.21 ▼0.0296.40 ▼8.4342.43 ▼6.60
Program Category /wp-admin/edit-tags.php?taxonomy=program-category&post_type=program1,2962.1327.6129.29
Add New Program /wp-admin/post-new.php?post_type=program2,3697.74171.4672.47
All Programs /wp-admin/edit.php?post_type=program1,1011.9330.1731.56

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

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
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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/our-programs-by-wowdevshop/includes/single-program.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/our-programs-by-wowdevshop/wowdevshop-our-programs.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: widget, company programs, programs, program category, organization programs

our-programs-by-wowdevshop/wowdevshop-our-programs.php 92% from 13 tests

The main file in "Our Programs by WOWDevShop" v. 1.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("our-programs-by-wowdevshop.php" instead of "wowdevshop-our-programs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected147 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23957147

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 1.97MB with 1.39MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.PNG715.93KB159.96KB▼ 77.66%
assets/screenshot-2.PNG1,239.91KB265.16KB▼ 78.61%
assets/screenshot-1.PNG60.50KB26.84KB▼ 55.63%