83% projects-by-serge-liatko

Code Review | Projects by Serge Liatko

WordPress plugin Projects by Serge Liatko scored83%from 54 tests.

About plugin

  • Plugin page: projects-by-serge...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 27, 2016
  • Latest release: Oct 17, 2016
  • Number of updates: 18
  • Update frequency: every 5.0 days
  • Top authors: sergeliatko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,140 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Projects by Serge Liatko
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2444.11 ▲4.96
Dashboard /wp-admin3.70 ▲0.3670.71 ▲9.35
Posts /wp-admin/edit.php3.83 ▲0.4750.03 ▲2.81
Add New Post /wp-admin/post-new.php6.29 ▲0.4186.65 ▼24.88
Media Library /wp-admin/upload.php3.63 ▲0.4042.36 ▲11.55
Categories /wp-admin/edit-tags.php?taxonomy=project_category&post_type=project3.6239.06
Types /wp-admin/edit-tags.php?taxonomy=project_type&post_type=project3.6240.28
All Projects /wp-admin/edit.php?post_type=project3.6842.11
Settings /wp-admin/edit.php?post_type=project&page=projects_plugin3.6545.54
Add New /wp-admin/post-new.php?post_type=project3.8460.07
Collections /wp-admin/edit-tags.php?taxonomy=project_collection&post_type=project3.6247.18
Clients /wp-admin/edit-tags.php?taxonomy=project_client&post_type=project3.6237.83

Server storage [IO: ▲0.09MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Projects by Serge Liatko: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.27 ▼1.291.82 ▲0.0345.48 ▲7.24
Dashboard /wp-admin2,253 ▲685.84 ▼0.01114.28 ▲9.3442.44 ▲0.01
Posts /wp-admin/edit.php2,136 ▲472.00 ▲0.0133.30 ▼7.1234.24 ▼3.26
Add New Post /wp-admin/post-new.php1,571 ▲5022.98 ▼0.45660.05 ▲1.6451.90 ▼0.88
Media Library /wp-admin/upload.php1,435 ▲504.23 ▼0.0193.97 ▼6.4242.99 ▼0.63
Categories /wp-admin/edit-tags.php?taxonomy=project_category&post_type=project1,3062.1425.8028.53
Types /wp-admin/edit-tags.php?taxonomy=project_type&post_type=project1,3092.1326.2631.62
All Projects /wp-admin/edit.php?post_type=project1,1651.9532.1532.48
Settings /wp-admin/edit.php?post_type=project&page=projects_plugin1,1922.2143.0640.28
Add New /wp-admin/post-new.php?post_type=project3,1989.38210.6887.51
Collections /wp-admin/edit-tags.php?taxonomy=project_collection&post_type=project1,2782.1327.3727.62
Clients /wp-admin/edit-tags.php?taxonomy=project_client&post_type=project1,2842.1324.9127.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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 no errors were found, this is by no means 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/projects-by-serge-liatko/projects-by-serge-liatko.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
Please fix the following attributes:
  • Screenshots: Please a description for screenshot #7 in projects-by-serge-liatko/assets to your readme.txt
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt might help

projects-by-serge-liatko/projects-by-serge-liatko.php 85% from 13 tests

The entry point to "Projects by Serge Liatko" version 0.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 plugin1,656 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP41401811,495
CSS400120
JavaScript10041

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity36.67
▷ Minimum class complexity5.00
▷ Maximum class complexity54.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods74
▷ Static methods7297.30%
▷ Public methods74100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin