84% zica-portfolio-posts

Code Review | Zica Portfolio Posts

WordPress plugin Zica Portfolio Posts scored84%from 54 tests.

About plugin

  • Plugin page: zica-portfolio-posts
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 7, 2016
  • Latest release: Jun 7, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: OyoThemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /536 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.18ms] Passed 4 tests

A check of server-side resources used by Zica Portfolio Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.62 ▼0.43
Dashboard /wp-admin3.33 ▼0.0247.36 ▼17.35
Posts /wp-admin/edit.php3.38 ▲0.0249.97 ▼1.51
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.80 ▼17.44
Media Library /wp-admin/upload.php3.25 ▲0.0239.57 ▲0.50
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=portfolio3.2441.70
Portfolio /wp-admin/edit.php?post_type=portfolio3.3041.28
Add New /wp-admin/post-new.php?post_type=portfolio3.4055.06
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=portfolio3.2539.83

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Just a few items left to fix
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/zica-portfolio-posts/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
category_children
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Zica Portfolio Posts: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,853 ▲9214.47 ▲0.161.89 ▲0.1042.29 ▲1.61
Dashboard /wp-admin2,253 ▲505.79 ▼0.09103.61 ▼3.2842.27 ▼3.32
Posts /wp-admin/edit.php2,135 ▲382.05 ▲0.0337.07 ▲1.1934.80 ▼3.24
Add New Post /wp-admin/post-new.php1,574 ▲4323.46 ▲2.47688.93 ▲8.8652.57 ▼15.63
Media Library /wp-admin/upload.php1,432 ▲324.18 ▼0.0796.55 ▼13.9343.71 ▼3.61
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=portfolio1,4902.1528.9533.81
Portfolio /wp-admin/edit.php?post_type=portfolio1,1791.9430.3432.11
Add New /wp-admin/post-new.php?post_type=portfolio2,6167.89176.0465.77
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=portfolio1,3512.1427.4830.06

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • category_children
    • widget_recent-comments

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 everything seems fine, this is not 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/zica-portfolio-posts/zica-portfolio.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: portfolio, custom post type, new post type

zica-portfolio-posts/zica-portfolio.php 92% from 13 tests

The main PHP script in "Zica Portfolio Posts" version 1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zica-portfolio-posts.php" instead of "zica-portfolio.php")

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
Good job! No executable or dangerous file extensions detected29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP121029

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin