94% abs-portfolio

Code Review | ABS Portfolio

WordPress plugin ABS Portfolio scored 94% 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: 5.9.2
  • 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,382 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.05MB] [CPU: ▼293.24ms] Passed 4 tests

Server-side resources used by ABS Portfolio
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1052.64 ▼3.85
Dashboard /wp-admin3.48 ▲0.0733.49 ▼2.83
Posts /wp-admin/edit.php3.70 ▲0.0636.94 ▼0.84
Add New Post /wp-admin/post-new.php6.95 ▼0.0299.40 ▼1,165.44
Media Library /wp-admin/upload.php3.36 ▲0.0624.62 ▲0.74
Portfolio Catagory /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=abs-portfolio-items3.3625.52
All Portfolios /wp-admin/edit.php?post_type=abs-portfolio-items3.4025.91
Add New Portfolio /wp-admin/post-new.php?post_type=abs-portfolio-items3.6543.39

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ABS Portfolio
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,980 ▲23416.67 ▲0.669.47 ▲1.832.87 ▲0.23
Dashboard /wp-admin2,945 ▲916.27 ▲0.14118.46 ▼15.88156.85 ▼2.20
Posts /wp-admin/edit.php2,744 ▲533.26 ▲0.0265.40 ▲3.85135.87 ▼5.43
Add New Post /wp-admin/post-new.php1,695 ▲616.71 ▼3.92417.19 ▼10.67155.16 ▼0.77
Media Library /wp-admin/upload.php1,749 ▲515.56 ▲0.07126.29 ▼8.85188.34 ▼4.12
Portfolio Catagory /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=abs-portfolio-items1,6752.8455.92110.22
All Portfolios /wp-admin/edit.php?post_type=abs-portfolio-items1,4363.1961.01111.77
Add New Portfolio /wp-admin/post-new.php?post_type=abs-portfolio-items2,3815.6693.49130.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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)
Everything seems fine, however 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
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/abs-portfolio/abs-portfolio.php:21

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: portfolio, hover effect portfolio, wp portfolio, nice 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 take the time to 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected355 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP17451156
JavaScript47234146
CSS10053

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
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%