10% entrepreneurship-1

Code Review | Entrepreneurship +1

WordPress plugin Entrepreneurship +1 scored 10% from 54 tests.

About plugin

  • Plugin page: entrepreneurship-1
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 5.8.1
  • First release: Mar 26, 2013
  • Latest release: Mar 31, 2013
  • Number of updates: 21
  • Update frequency: every 3.3 days
  • Top authors: ChristianRudolf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,107 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/entrepreneurship-1/entrepreneurship.php+51
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.09MB] [CPU: ▼149.59ms] Passed 4 tests

A check of server-side resources used by Entrepreneurship +1
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.06 ▲0.3436.83 ▲5.72
Dashboard /wp-admin3.22 ▲0.1733.56 ▼14.48
Posts /wp-admin/edit.php3.28 ▲0.1732.74 ▼9.86
Add New Post /wp-admin/post-new.php5.23 ▼0.2075.31 ▼569.56
Media Library /wp-admin/upload.php3.23 ▲0.2332.17 ▼4.46
General /wp-admin/admin.php?page=epo_general3.2030.36
Social Networks /wp-admin/admin.php?page=epo_networks3.2027.55

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options
epo_options

Browser metrics Passed 4 tests

An overview of browser requirements for Entrepreneurship +1
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,717 ▲12115.87 ▲0.269.66 ▼0.7447.11 ▲4.21
Dashboard /wp-admin2,991 ▲605.89 ▼0.17146.21 ▼11.21128.99 ▲13.77
Posts /wp-admin/edit.php2,773 ▲342.60 ▼0.1263.11 ▼15.3982.26 ▼5.26
Add New Post /wp-admin/post-new.php1,796 ▼1,84421.50 ▲6.61289.26 ▼167.39128.82 ▲5.78
Media Library /wp-admin/upload.php1,855 ▲485.03 ▲0.02136.91 ▼18.83139.21 ▲13.58
General /wp-admin/admin.php?page=epo_general1,1952.4958.3575.86
Social Networks /wp-admin/admin.php?page=epo_networks1,7262.4961.6389.55

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
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/entrepreneurship-1/uninstall.php+12
    Use of undefined constant any - assumed 'any' (this will throw an Error in a future version of PHP)

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=epo_networks
    • > User deprecated in wp-includes/functions.php+5586
    contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/entrepreneurship-1/entrepreneurship.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

entrepreneurship-1/entrepreneurship.php 92% from 13 tests

Analyzing the main PHP file in "Entrepreneurship +1" version 1.1
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("entrepreneurship-1.php" instead of "entrepreneurship.php")

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 detected1,487 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22021461,231
PO File198118210
JavaScript27646

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions63
▷ Named functions63100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin