84% wp-live-portfolio

Code Review | WP Live Portfolio

WordPress plugin WP Live Portfolio scored84%from 54 tests.

About plugin

  • Plugin page: wp-live-portfolio
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.1
  • WordPress version: 6.3.1
  • First release: May 23, 2019
  • Latest release: May 23, 2019
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: eternityweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /549 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 gracefully, with no errors

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

Server-side resources used by WP Live Portfolio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0120.43 ▼21.83
Dashboard /wp-admin3.40 ▲0.0945.61 ▼2.90
Posts /wp-admin/edit.php3.45 ▲0.0947.67 ▼0.35
Add New Post /wp-admin/post-new.php5.98 ▲0.0982.65 ▼3.33
Media Library /wp-admin/upload.php3.32 ▲0.0937.34 ▲4.40
All Portfolio /wp-admin/edit.php?post_type=wp-portfolio3.3634.44
Categories /wp-admin/edit-tags.php?taxonomy=wp-portfolio-cat&post_type=wp-portfolio3.3133.05
Add Portfolio /wp-admin/post-new.php?post_type=wp-portfolio3.4555.05

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP Live Portfolio
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲11513.66 ▼0.921.84 ▲0.0340.15 ▼7.70
Dashboard /wp-admin2,237 ▲495.87 ▲0.96103.02 ▼18.3239.26 ▼5.09
Posts /wp-admin/edit.php2,120 ▲312.00 ▼0.0139.42 ▲2.2937.29 ▲3.67
Add New Post /wp-admin/post-new.php1,563 ▲4923.23 ▲5.76658.50 ▼18.7357.69 ▲1.33
Media Library /wp-admin/upload.php1,413 ▲224.20 ▼0.0195.83 ▼3.5343.27 ▲0.60
All Portfolio /wp-admin/edit.php?post_type=wp-portfolio1,1091.9331.3732.31
Categories /wp-admin/edit-tags.php?taxonomy=wp-portfolio-cat&post_type=wp-portfolio1,2902.1425.8929.74
Add Portfolio /wp-admin/post-new.php?post_type=wp-portfolio2,3197.70165.8363.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-live-portfolio/wp-live-portfolio.php:70

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Add /Edit New Portfolio), #2 (Live Portfolio List), #3 (Single Portfolio - Desktop View)
The official readme.txt might help

wp-live-portfolio/wp-live-portfolio.php Passed 13 tests

The main PHP script in "WP Live Portfolio" version 1.0.0 is automatically included on every request by WordPress
130 characters long description:
Showcase your website design work and website demos from the live URL. Plugin shows desktop, tab and mobile view of the live link.

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
No dangerous file extensions were detected687 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP19434357
CSS1330279
JavaScript15051

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.26
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%
Functions11
▷ Named functions11100.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
PNG images were not found in this plugin