84% sister-pages

Code Review | Sister Pages

WordPress plugin Sister Pages scored84%from 54 tests.

About plugin

  • Plugin page: sister-pages
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2021
  • Latest release: Mar 2, 2022
  • Number of updates: 9
  • Update frequency: every 29.3 days
  • Top authors: johannroche (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,141 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.23ms] Passed 4 tests

A check of server-side resources used by Sister Pages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.32 ▼4.39
Dashboard /wp-admin3.31 ▲0.0147.00 ▼5.99
Posts /wp-admin/edit.php3.36 ▲0.0045.07 ▼11.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.55 ▲1.34
Media Library /wp-admin/upload.php3.23 ▲0.0041.04 ▲6.75

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Sister Pages
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.41 ▲0.051.69 ▼0.2437.39 ▼6.82
Dashboard /wp-admin2,209 ▲325.66 ▲0.1286.78 ▼4.5945.44 ▼0.44
Posts /wp-admin/edit.php2,117 ▲172.00 ▲0.0341.02 ▲4.3239.05 ▲1.22
Add New Post /wp-admin/post-new.php1,538 ▲122.87 ▲4.40671.93 ▲17.6153.78 ▼6.18
Media Library /wp-admin/upload.php1,411 ▲114.22 ▼0.05104.55 ▼2.5045.95 ▲2.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sister-pages/shortcodes/sisterpages.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sister-pages/shortcodes/sisterpages.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: sister page, elementor widget seo, page soeur, seo

sister-pages/sister-pages.php Passed 13 tests

The main PHP script in "Sister Pages" version 1.0.4 is automatically included on every request by WordPress
51 characters long description:
Shortcodes to improve SEO of your amazing Wordpress

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
No dangerous file extensions were detected243 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP485214243

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.00
▷ Minimum class complexity6.00
▷ Maximum class complexity8.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods15
▷ Static methods16.67%
▷ Public methods1386.67%
▷ Protected methods213.33%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
There were not PNG files found in your plugin