83% jeba-cute-portfolio

Code Review | Jeba Cute portfolio

WordPress plugin Jeba Cute portfolio scored83%from 54 tests.

About plugin

  • Plugin page: jeba-cute-portfolio
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Sep 9, 2014
  • Latest release: Sep 9, 2014
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: jahed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /675 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.35ms] Passed 4 tests

Analyzing server-side resources used by Jeba Cute portfolio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.71 ▲4.14
Dashboard /wp-admin3.34 ▲0.0445.90 ▼3.84
Posts /wp-admin/edit.php3.39 ▲0.0447.89 ▲0.22
Add New Post /wp-admin/post-new.php5.92 ▲0.0490.87 ▲2.35
Media Library /wp-admin/upload.php3.26 ▲0.0432.95 ▼0.12
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=jeba-pitems3.2636.65
JebaPortfolios /wp-admin/edit.php?post_type=jeba-pitems3.3234.75
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=jeba-pitems3.2634.31
Add New /wp-admin/post-new.php?post_type=jeba-pitems3.3947.00

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
category_children
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Jeba Cute portfolio: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,957 ▲22213.62 ▼1.136.03 ▲4.2642.68 ▼3.70
Dashboard /wp-admin2,248 ▲604.85 ▼0.03103.12 ▲3.0943.51 ▼1.00
Posts /wp-admin/edit.php2,128 ▲392.06 ▲0.0639.26 ▼1.5535.10 ▼0.12
Add New Post /wp-admin/post-new.php1,551 ▲2323.15 ▲0.07656.50 ▲53.9553.77 ▲0.05
Media Library /wp-admin/upload.php1,430 ▲424.17 ▼0.0896.98 ▲0.3842.58 ▼2.81
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=jeba-pitems1,4792.1529.2231.53
JebaPortfolios /wp-admin/edit.php?post_type=jeba-pitems1,1471.9330.1729.10
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=jeba-pitems1,3492.1427.1328.54
Add New /wp-admin/post-new.php?post_type=jeba-pitems2,3867.78162.9960.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • category_children

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jeba-cute-portfolio/jeba-main-index.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #2 (Another demo.) image not found
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

jeba-cute-portfolio/jeba-main-index.php 85% from 13 tests

"Jeba Cute portfolio" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for 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 ("jeba-cute-portfolio.php" instead of "jeba-main-index.php")
  • Description: The description should be shorter than 140 characters (currently 356 characters long)

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
Good job! No executable or dangerous file extensions detected302 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS1579168
PHP113894
SVG20128
JavaScript20112

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected