83% awesome-wp-mixitup-portfolio

Code Review | Awesome Wp Mixitup Portfolio

WordPress plugin Awesome Wp Mixitup Portfolio scored83%from 54 tests.

About plugin

  • Plugin page: awesome-wp-mixitu...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Sep 26, 2016
  • Latest release: Jan 7, 2022
  • Number of updates: 15
  • Update frequency: every 128.7 days
  • Top authors: nayon46 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /6,025 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by Awesome Wp Mixitup Portfolio
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.79 ▼5.37
Dashboard /wp-admin3.35 ▲0.0448.51 ▼6.07
Posts /wp-admin/edit.php3.40 ▲0.0452.47 ▲3.70
Add New Post /wp-admin/post-new.php5.93 ▲0.04104.79 ▲13.14
Media Library /wp-admin/upload.php3.27 ▲0.0438.93 ▲3.97
Portfolio /wp-admin/edit.php?post_type=advanced-portfolio3.3138.57
add protfolio /wp-admin/post-new.php?post_type=advanced-portfolio3.3965.89
category /wp-admin/edit-tags.php?taxonomy=advanced_taxonomoy&post_type=advanced-portfolio3.3936.08

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Awesome Wp Mixitup Portfolio
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲18414.07 ▼0.495.64 ▲3.2145.49 ▲2.14
Dashboard /wp-admin2,237 ▲465.85 ▲0.98112.45 ▲7.6142.06 ▼3.46
Posts /wp-admin/edit.php2,120 ▲312.02 ▼0.0240.52 ▲0.1035.31 ▼4.24
Add New Post /wp-admin/post-new.php1,568 ▲2618.50 ▼4.56623.63 ▼24.5251.25 ▼1.25
Media Library /wp-admin/upload.php1,422 ▲344.22 ▼0.0196.21 ▼8.3443.06 ▼0.72
Portfolio /wp-admin/edit.php?post_type=advanced-portfolio1,0871.9837.0929.42
add protfolio /wp-admin/post-new.php?post_type=advanced-portfolio2,2717.53181.0768.97
category /wp-admin/edit-tags.php?taxonomy=advanced_taxonomoy&post_type=advanced-portfolio1,2932.1430.0228.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Unterminated comment starting line 3 in wp-content/plugins/awesome-wp-mixitup-portfolio/index.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-wp-mixitup-portfolio/Awesome-Wp-Mixitup-Portfolio.php:18

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Plugin Name: You should set the name of your plugin on the first line ( === awesome-wp-mixitup-portfolio === )
The official readme.txt is a good inspiration

awesome-wp-mixitup-portfolio/Awesome-Wp-Mixitup-Portfolio.php 92% from 13 tests

"Awesome Wp Mixitup Portfolio" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("awesome-wp-mixitup-portfolio.php" instead of "Awesome-Wp-Mixitup-Portfolio.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected355 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1626259
PHP252792
JavaScript24144

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin