93% corporate-testimonials-powered-by-assist

Code Review | Corporate Portfolio powered by ASSIST

WordPress plugin Corporate Portfolio powered by ASSIST scored 93% from 54 tests.

About plugin

  • Plugin page: corporate-testimo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Oct 3, 2016
  • Latest release: Oct 3, 2016
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: assistsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 392 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼147.39ms] Passed 4 tests

This is a short check of server-side resources used by Corporate Portfolio powered by ASSIST
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1936.69 ▲12.69
Dashboard /wp-admin3.13 ▲0.0741.81 ▼10.59
Posts /wp-admin/edit.php3.18 ▲0.0753.36 ▲1.31
Add New Post /wp-admin/post-new.php5.49 ▲0.06107.27 ▼570.89
Media Library /wp-admin/upload.php3.07 ▲0.0633.13 ▼9.38
Add New /wp-admin/post-new.php?post_type=capwp_portfolio3.1857.09
Category /wp-admin/edit-tags.php?taxonomy=capwp_register_custom_category&post_type=capwp_portfolio3.0733.03
All Items /wp-admin/edit.php?post_type=capwp_portfolio3.1140.09

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Corporate Portfolio powered by ASSIST
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,871 ▲29916.53 ▲0.8318.92 ▲5.5274.72 ▲25.42
Dashboard /wp-admin3,007 ▲765.86 ▼0.34148.64 ▼23.93105.30 ▼8.23
Posts /wp-admin/edit.php2,779 ▲402.72 ▲0.0169.37 ▲2.1496.73 ▲7.81
Add New Post /wp-admin/post-new.php1,641 ▼4221.38 ▲2.63325.46 ▼95.40114.78 ▼2.47
Media Library /wp-admin/upload.php1,850 ▲435.04 ▼0.00168.77 ▲6.53120.71 ▼1.86
Add New /wp-admin/post-new.php?post_type=capwp_portfolio3,0208.93229.53146.66
Category /wp-admin/edit-tags.php?taxonomy=capwp_register_custom_category&post_type=capwp_portfolio1,7792.5163.5882.81
All Items /wp-admin/edit.php?post_type=capwp_portfolio1,4482.6365.9874.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/corporate-testimonials-powered-by-assist/register_custom_portfolio.php:42
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/corporate-testimonials-powered-by-assist/register_shortcode_info.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/corporate-testimonials-powered-by-assist/portfolio.php:12

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed:
  • Contributors: Plugin contributors not specified
  • Screenshots: These screenshots do not have images: #1 (Portfolio Menu), #2 (Display Portfolio Using Shortcodes), #3 (See The Action In Front-End)
Please take inspiration from this readme.txt

corporate-testimonials-powered-by-assist/portfolio.php 92% from 13 tests

The main PHP file in "Corporate Portfolio powered by ASSIST" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("corporate-testimonials-powered-by-assist.php" instead of "portfolio.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
Everything looks great! No dangerous files found in this plugin3,067 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript45532791,562
CSS4177481,313
PHP3408192

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin