77% woobopolis

Code Review | WooBoPolis

WordPress plugin WooBoPolis scored77%from 54 tests.

About plugin

  • Plugin page: woobopolis
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Mar 14, 2016
  • Latest release: Mar 14, 2016
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: ctala (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /508 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.01MB] [CPU: ▼0.25ms] Passed 4 tests

Analyzing server-side resources used by WooBoPolis
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.06 ▼0.44
Dashboard /wp-admin3.31 ▲0.0145.57 ▼0.76
Posts /wp-admin/edit.php3.36 ▲0.0147.30 ▲4.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.32 ▼0.21
Media Library /wp-admin/upload.php3.24 ▲0.0136.25 ▲0.41
CuboPolis Settings /wp-admin/options-general.php?page=cubopolis3.2529.48

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WooBoPolis
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.30 ▼1.081.58 ▼0.3539.69 ▲0.10
Dashboard /wp-admin2,207 ▲195.83 ▼0.0598.00 ▲0.5338.64 ▼3.85
Posts /wp-admin/edit.php2,096 ▲71.99 ▲0.0137.97 ▲1.8441.48 ▲5.91
Add New Post /wp-admin/post-new.php1,531 ▼218.28 ▼4.94628.87 ▼63.3250.43 ▼2.55
Media Library /wp-admin/upload.php1,392 ▲14.13 ▼0.04102.35 ▲2.5445.58 ▲3.35
CuboPolis Settings /wp-admin/options-general.php?page=cubopolis8652.0524.0824.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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 fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/woobopolis/views/views/admin/viewAdmin.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WooBoPolis\\add_action() in wp-content/plugins/woobopolis/WooBoPolis.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: ecommerce

woobopolis/WooBoPolis.php 69% from 13 tests

The main file in "WooBoPolis" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Git Repository: A Git repository was detected inside this plugin
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woobopolis.php" instead of "WooBoPolis.php")

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
There were no executable files found in this plugin697 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP16157194612
JSON43077
Markdown2608

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.00
▷ Minimum class complexity3.00
▷ Maximum class complexity39.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods54
▷ Static methods1018.52%
▷ Public methods5296.30%
▷ Protected methods00.00%
▷ Private methods23.70%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin