94% freefolio

Code Review | Freefolio

WordPress plugin Freefolio scored 94% from 54 tests.

About plugin

  • Plugin page: freefolio
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.1.1
  • WordPress version: 5.9.2
  • First release: Aug 24, 2014
  • Latest release: Mar 18, 2015
  • Number of updates: 32
  • Update frequency: every 6.4 days
  • Top authors: chriswallace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 4,594 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.13MB] [CPU: ▼301.69ms] Passed 4 tests

Server-side resources used by Freefolio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2158.93 ▲5.95
Dashboard /wp-admin3.56 ▲0.1635.69 ▲1.25
Posts /wp-admin/edit.php3.79 ▲0.1541.20 ▲5.74
Add New Post /wp-admin/post-new.php7.06 ▲0.07102.07 ▼1,208.85
Media Library /wp-admin/upload.php3.44 ▲0.1427.34 ▼4.90
Dribbble Importer /wp-admin/tools.php?page=dpi-settings3.4125.72

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Freefolio
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲7815.86 ▼0.156.18 ▼0.312.88 ▲0.53
Dashboard /wp-admin2,897 ▲366.11 ▼0.10119.72 ▼15.72154.12 ▼8.37
Posts /wp-admin/edit.php2,693 ▼13.24 ▲0.0164.99 ▲0.07144.59 ▲3.17
Add New Post /wp-admin/post-new.php1,714 ▼4421.25 ▲0.01448.53 ▲11.95164.22 ▲5.28
Media Library /wp-admin/upload.php1,700 ▲25.50 ▼0.03159.55 ▲13.41204.28 ▲11.35
Dribbble Importer /wp-admin/tools.php?page=dpi-settings1,0382.4357.22115.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely 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 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at 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/freefolio/class.Freefolio.php:683

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: portfolio, dribbble, post types

freefolio/freefolio.php Passed 13 tests

The principal PHP file in "Freefolio" v. 1.1.4 is loaded by WordPress automatically on each request
43 characters long description:
Adds a portfolio to your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin812 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3256318695
CSS1274117

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity45.00
▷ Minimum class complexity31.00
▷ Maximum class complexity59.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods41
▷ Static methods2253.66%
▷ Public methods3790.24%
▷ Protected methods00.00%
▷ Private methods49.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants218.18%
▷ Class constants981.82%
▷ Public constants9100.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
PNG images were not found in this plugin