84% genesis-simple-portfolio

Code Review | Genesis Simple Portfolio

WordPress plugin Genesis Simple Portfolio scored84%from 54 tests.

About plugin

  • Plugin page: genesis-simple-po...
  • Plugin version: 0.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Sep 22, 2015
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: gakuranman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,798 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.54ms] Passed 4 tests

Server-side resources used by Genesis Simple Portfolio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1342.22 ▼0.94
Dashboard /wp-admin3.40 ▲0.0549.93 ▼13.86
Posts /wp-admin/edit.php3.46 ▲0.1047.19 ▼4.00
Add New Post /wp-admin/post-new.php5.98 ▲0.09106.08 ▲5.61
Media Library /wp-admin/upload.php3.32 ▲0.0939.12 ▲0.66
All Portfolio Items /wp-admin/edit.php?post_type=portfolio3.3739.45
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio3.3134.69
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio3.3133.52
Add New Item /wp-admin/post-new.php?post_type=portfolio3.4756.39

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Genesis Simple Portfolio
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.22 ▼1.071.92 ▼0.0440.50 ▼1.69
Dashboard /wp-admin2,246 ▲584.84 ▼0.0399.97 ▼17.9838.28 ▼5.16
Posts /wp-admin/edit.php2,126 ▲342.05 ▲0.0235.18 ▼3.4731.95 ▼0.91
Add New Post /wp-admin/post-new.php1,567 ▲4823.36 ▼0.03602.23 ▼73.4758.06 ▲3.55
Media Library /wp-admin/upload.php1,425 ▲374.24 ▲0.1699.68 ▼14.7046.55 ▼2.62
All Portfolio Items /wp-admin/edit.php?post_type=portfolio1,1941.9331.3532.40
Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio1,2712.1428.8428.59
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio1,3022.1426.4628.10
Add New Item /wp-admin/post-new.php?post_type=portfolio3,0037.88191.6784.57

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
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-simple-portfolio/genesis-simple-portfolio.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: tags, categories, portfolio, genesis, taxonomy...

genesis-simple-portfolio/genesis-simple-portfolio.php Passed 13 tests

Analyzing the main PHP file in "Genesis Simple Portfolio" version 0.5.0
80 characters long description:
Adds a portfolio to any WordPress theme, with support for the Genesis framework.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin199 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24150199

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin