84% business-era-extension

Code Review | Business Era Extension

WordPress plugin Business Era Extension scored84%from 54 tests.

About plugin

  • Plugin page: business-era-exte...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-4.7.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2017
  • Latest release: Jan 24, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: maneshtimilsina (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /6,599 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼7.96ms] Passed 4 tests

Analyzing server-side resources used by Business Era Extension
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1437.97 ▼4.45
Dashboard /wp-admin3.42 ▲0.1246.47 ▼6.50
Posts /wp-admin/edit.php3.54 ▲0.1847.34 ▼4.99
Add New Post /wp-admin/post-new.php6.01 ▲0.1283.39 ▼15.91
Media Library /wp-admin/upload.php3.35 ▲0.1236.03 ▲3.59
Add New /wp-admin/post-new.php?post_type=team3.4653.34
Categories /wp-admin/edit-tags.php?taxonomy=team-categories&post_type=team3.3435.68
All Items /wp-admin/edit.php?post_type=testimonials3.3934.99
Categories /wp-admin/edit-tags.php?taxonomy=testimonials-categories&post_type=testimonials3.3434.21
Add New /wp-admin/post-new.php?post_type=testimonials3.4752.00
All Items /wp-admin/edit.php?post_type=portfolio3.3936.66
Categories /wp-admin/edit-tags.php?taxonomy=portfolio-categories&post_type=portfolio3.3432.69
Add New /wp-admin/post-new.php?post_type=portfolio3.4751.44
All Items /wp-admin/edit.php?post_type=team3.3934.16

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_business-era-our-team
widget_business-era-portfolio
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_business-era-testimonials

Browser metrics Passed 4 tests

This is an overview of browser requirements for Business Era Extension
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,020 ▲26313.59 ▼0.995.26 ▲3.1437.00 ▼9.76
Dashboard /wp-admin2,309 ▲1245.80 ▲0.95100.01 ▼11.7742.70 ▲1.45
Posts /wp-admin/edit.php2,194 ▲1022.02 ▼0.0140.24 ▲4.3938.08 ▲6.94
Add New Post /wp-admin/post-new.php1,602 ▲8317.88 ▼5.34697.80 ▲10.1153.21 ▼7.66
Media Library /wp-admin/upload.php1,491 ▲1064.25 ▲0.06113.16 ▲18.0149.28 ▲6.27
Add New /wp-admin/post-new.php?post_type=team2,5097.79168.1367.87
Categories /wp-admin/edit-tags.php?taxonomy=team-categories&post_type=team1,3622.3127.2529.26
All Items /wp-admin/edit.php?post_type=testimonials1,1721.9333.6130.53
Categories /wp-admin/edit-tags.php?taxonomy=testimonials-categories&post_type=testimonials1,3652.3129.8531.98
Add New /wp-admin/post-new.php?post_type=testimonials2,4227.73164.5356.39
All Items /wp-admin/edit.php?post_type=portfolio1,1721.9530.7431.68
Categories /wp-admin/edit-tags.php?taxonomy=portfolio-categories&post_type=portfolio1,3622.3128.6429.24
Add New /wp-admin/post-new.php?post_type=portfolio2,4507.68167.5656.54
All Items /wp-admin/edit.php?post_type=team1,1721.9529.8830.85

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 did not uninstall successfully, leaving 9 options in the database
    • widget_business-era-our-team
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_business-era-portfolio
    • widget_recent-comments
    • can_compress_scripts
    • widget_business-era-testimonials
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business-era-extension/testimonials-widget.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business-era-extension/team.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business-era-extension/testimonials.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business-era-extension/team-widget.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business-era-extension/portfolio.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/business-era-extension/portfolio-widget.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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
7 plugin tags: custom post type, widget, business-era, sidebar, metaboxes...

business-era-extension/business-era-extension.php 92% from 13 tests

The entry point to "Business Era Extension" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,222 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8367981,183
JavaScript281139

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity22.00
▷ Minimum class complexity6.00
▷ Maximum class complexity37.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods14.76%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin