79% simple-folio

Code Review | Simple Folio

WordPress plugin Simple Folio scored79%from 54 tests.

About plugin

  • Plugin page: simple-folio
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Aug 26, 2016
  • Latest release: Aug 10, 2023
  • Number of updates: 27
  • Update frequency: every 94.2 days
  • Top authors: PressTigers (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /3,764 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.31MB] [CPU: ▲2.92ms] Passed 4 tests

A check of server-side resources used by Simple Folio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2952.47 ▲7.43
Dashboard /wp-admin3.66 ▲0.3661.61 ▲7.86
Posts /wp-admin/edit.php3.69 ▲0.3457.10 ▲8.30
Add New Post /wp-admin/post-new.php6.20 ▲0.3191.14 ▼11.90
Media Library /wp-admin/upload.php3.52 ▲0.2944.73 ▲10.20
New Item /wp-admin/post-new.php?post_type=simple_folio_item3.7161.79
Items /wp-admin/edit.php?post_type=simple_folio_item3.5546.30
Filter Tags /wp-admin/edit-tags.php?taxonomy=simple_folio_tag&post_type=simple_folio_item3.5144.62
Groups /wp-admin/edit-tags.php?taxonomy=simple_folio_group&post_type=simple_folio_item3.5144.51
Settings /wp-admin/edit.php?post_type=simple_folio_item&page=simple-folio-settings3.4940.81

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
simple_folio_options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Folio
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,953 ▲19213.49 ▼0.929.10 ▲7.3841.75 ▼3.32
Dashboard /wp-admin2,245 ▲685.61 ▲0.1085.01 ▼19.6437.75 ▼6.29
Posts /wp-admin/edit.php2,147 ▲442.01 ▲0.0435.56 ▲0.0232.70 ▼5.33
Add New Post /wp-admin/post-new.php1,566 ▲3823.42 ▲0.27664.61 ▲2.1455.75 ▲2.18
Media Library /wp-admin/upload.php1,447 ▲474.25 ▲0.0995.97 ▼3.0144.55 ▲2.27
New Item /wp-admin/post-new.php?post_type=simple_folio_item2,4367.80175.5068.63
Items /wp-admin/edit.php?post_type=simple_folio_item1,1441.9431.3931.90
Filter Tags /wp-admin/edit-tags.php?taxonomy=simple_folio_tag&post_type=simple_folio_item1,2902.1627.8730.09
Groups /wp-admin/edit-tags.php?taxonomy=simple_folio_group&post_type=simple_folio_item1,3212.1625.7729.55
Settings /wp-admin/edit.php?post_type=simple_folio_item&page=simple-folio-settings9862.0423.8028.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • simple_folio_options
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/simple-folio/admin/partials/simple-folio-admin-display.php
    • > /wp-content/plugins/simple-folio/public/partials/simple-folio-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-folio/includes/global-functions/simple-folio-global-functions.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: filter portfolio, showcase, projects listing, portfolio, four column...

simple-folio/simple-folio.php Passed 13 tests

The primary PHP file in "Simple Folio" version 1.1.0 is used by WordPress to initiate all plugin functionality
84 characters long description:
This plugin lets you to create beautiful filterable slide down responsive portfolio.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,711 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24134441,522
PHP242351,0071,077
SVG100640
CSS32339472

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.26
Average class complexity5.82
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods50
▷ Static methods24.00%
▷ Public methods4590.00%
▷ Protected methods00.00%
▷ Private methods510.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/sprite.png15.54KB0.66KB▼ 95.73%