84% abs-portfolio

Code Review | ABS Portfolio

WordPress plugin ABS Portfolio scored84%from 54 tests.

About plugin

  • Plugin page: abs-portfolio
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Feb 14, 2015
  • Latest release: Jul 25, 2015
  • Number of updates: 9
  • Update frequency: every 17.9 days
  • Top authors: siddiknmh (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,602 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.62ms] Passed 4 tests

A check of server-side resources used by ABS Portfolio
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0447.11 ▲7.44
Dashboard /wp-admin3.34 ▲0.0443.48 ▼4.70
Posts /wp-admin/edit.php3.39 ▲0.0345.10 ▲0.04
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.03 ▼0.38
Media Library /wp-admin/upload.php3.26 ▲0.0333.43 ▼1.42
Portfolio Catagory /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=abs-portfolio-items3.3533.91
Add New Portfolio /wp-admin/post-new.php?post_type=abs-portfolio-items3.4147.18
All Portfolios /wp-admin/edit.php?post_type=abs-portfolio-items3.3136.21

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for ABS Portfolio
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,966 ▲20513.47 ▼1.058.84 ▲7.1545.75 ▲6.31
Dashboard /wp-admin2,239 ▲595.70 ▲0.0483.31 ▼4.1539.80 ▼4.94
Posts /wp-admin/edit.php2,144 ▲472.02 ▲0.0435.11 ▼0.9731.19 ▼3.24
Add New Post /wp-admin/post-new.php1,561 ▲3223.66 ▲0.49647.19 ▼31.5262.24 ▲4.20
Media Library /wp-admin/upload.php1,447 ▲504.27 ▲0.1395.37 ▼2.7343.86 ▼3.33
Portfolio Catagory /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=abs-portfolio-items1,3212.3028.7531.30
Add New Portfolio /wp-admin/post-new.php?post_type=abs-portfolio-items1,7883.6963.2633.99
All Portfolios /wp-admin/edit.php?post_type=abs-portfolio-items1,1221.9635.0929.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • 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)
Even though no errors were found, this is by no means an exhaustive test

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/abs-portfolio/abs-portfolio.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
4 plugin tags: wp portfolio, nice portfolio, hover effect portfolio, portfolio

abs-portfolio/abs-portfolio.php 92% from 13 tests

The primary PHP file in "ABS Portfolio" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)

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
Success! There were no dangerous files found in this plugin355 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP17451156
JavaScript47234146
CSS10053

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Constants1
▷ Global constants1100.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
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
js/abs_portfolio.png1.66KB0.99KB▼ 40.43%