78% evm-portfolio

Code Review | Expert Village Media Portfolio

WordPress plugin Expert Village Media Portfolio scored78%from 54 tests.

About plugin

  • Plugin page: evm-portfolio
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.6
  • WordPress version: 6.3.1
  • First release: Aug 19, 2013
  • Latest release: Apr 6, 2015
  • Number of updates: 41
  • Update frequency: every 14.5 days
  • Top authors: expertvillagemedia (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

50+ active /7,685 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.64ms] Passed 4 tests

An overview of server-side resources used by Expert Village Media Portfolio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.33 ▼6.62
Dashboard /wp-admin3.34 ▲0.0445.28 ▼4.91
Posts /wp-admin/edit.php3.39 ▲0.0349.38 ▲5.72
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.50 ▼3.02
Media Library /wp-admin/upload.php3.26 ▲0.0340.70 ▲3.98
Filters /wp-admin/edit-tags.php?taxonomy=filterportifolio&post_type=portfolio3.3538.03
Add New /wp-admin/post-new.php?post_type=portfolio3.4352.27
Portfolio /wp-admin/edit.php?post_type=portfolio3.3134.49
Settings /wp-admin/edit.php?post_type=portfolio&page=portfolio_settings3.2731.33

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Expert Village Media Portfolio
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲17313.60 ▼0.707.17 ▲5.4039.25 ▼2.30
Dashboard /wp-admin2,241 ▲534.86 ▼0.21108.67 ▲2.2839.95 ▲3.42
Posts /wp-admin/edit.php2,127 ▲382.02 ▲0.0241.10 ▲4.7137.11 ▲4.05
Add New Post /wp-admin/post-new.php1,562 ▲2922.94 ▼0.27668.33 ▲5.4668.05 ▲8.52
Media Library /wp-admin/upload.php1,423 ▲354.12 ▼0.05112.53 ▲10.9648.00 ▲5.97
Filters /wp-admin/edit-tags.php?taxonomy=filterportifolio&post_type=portfolio1,2942.1330.7729.65
Add New /wp-admin/post-new.php?post_type=portfolio2,7647.69172.9372.42
Portfolio /wp-admin/edit.php?post_type=portfolio1,1391.9430.7429.83
Settings /wp-admin/edit.php?post_type=portfolio&page=portfolio_settings9502.0222.6030.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=portfolio&page=portfolio_settings
    • > Notice in wp-content/plugins/evm-portfolio/options.php+4
    Undefined variable: options_page

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/evm-portfolio/evm_portfolio.php:23
    • > PHP Notice
      Undefined variable: options_page in wp-content/plugins/evm-portfolio/options.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/evm-portfolio/options.php:6

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: portfolio, jquery portfolio, portfolio with filters, portfolio plugin, filterable portfolio...

evm-portfolio/evm_portfolio.php 85% from 13 tests

The main PHP script in "Expert Village Media Portfolio" version 1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 160 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("evm-portfolio.php" instead of "evm_portfolio.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
Everything looks great! No dangerous files found in this plugin349 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP237442296
JavaScript191053

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/view-details_new.png1.05KB0.56KB▼ 46.43%