84% story-chief-polylang

Code Review | StoryChief Polylang

WordPress plugin StoryChief Polylang scored84%from 54 tests.

About plugin

  • Plugin page: story-chief-polylang
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Jul 3, 2017
  • Latest release: May 12, 2022
  • Number of updates: 10
  • Update frequency: every 177.5 days
  • Top authors: storychief (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /985 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.10ms] Passed 4 tests

An overview of server-side resources used by StoryChief Polylang
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.00 ▼1.88
Dashboard /wp-admin3.33 ▲0.0250.44 ▼1.42
Posts /wp-admin/edit.php3.38 ▲0.0250.53 ▼3.60
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.85 ▼29.48
Media Library /wp-admin/upload.php3.25 ▲0.0237.83 ▼1.01

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for StoryChief Polylang
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.504.73 ▲2.8044.33 ▼0.76
Dashboard /wp-admin2,203 ▲154.84 ▼0.03104.63 ▼2.9643.96 ▲1.39
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0334.19 ▼2.9135.66 ▼1.40
Add New Post /wp-admin/post-new.php1,533 ▼023.17 ▲0.02659.69 ▼34.8853.53 ▼6.96
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.01100.05 ▼13.0745.41 ▼1.39

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/story-chief-polylang/story-chief-polylang.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: polylang, storychief

story-chief-polylang/story-chief-polylang.php Passed 13 tests

"StoryChief Polylang" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
This plugin lets StoryChief and Polylang work together.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin108 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32116108

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity4.60
▷ Minimum method complexity2.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin