84% oklada-miesiecznika-programista

Code Review | Okładka magazynu Programista

WordPress plugin Okładka magazynu Programista scored84%from 54 tests.

About plugin

  • Plugin page: oklada-miesieczni...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Aug 31, 2015
  • Latest release: Aug 31, 2015
  • Number of updates: 3
  • Update frequency: every 7.0 days
  • Top authors: Programistamag (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.18ms] Passed 4 tests

An overview of server-side resources used by Okładka magazynu Programista
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.94 ▲0.94
Dashboard /wp-admin3.31 ▲0.0147.23 ▼1.16
Posts /wp-admin/edit.php3.36 ▲0.0145.64 ▼2.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.19 ▼13.66
Media Library /wp-admin/upload.php3.24 ▲0.0135.37 ▲2.90

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Okładka magazynu Programista
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.62 ▼0.061.92 ▼0.0945.67 ▼2.54
Dashboard /wp-admin2,206 ▲215.91 ▲0.09109.61 ▼3.1043.31 ▲2.66
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0235.34 ▼6.3636.82 ▲0.23
Add New Post /wp-admin/post-new.php1,534 ▼023.05 ▼0.06659.90 ▼8.2351.80 ▼2.68
Media Library /wp-admin/upload.php1,385 ▼04.24 ▲0.0495.99 ▼8.2246.10 ▲2.36

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_programista_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/oklada-miesiecznika-programista/programista-widget.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: widget, advertisement

oklada-miesiecznika-programista/programista-widget.php 92% from 13 tests

The entry point to "Okładka magazynu Programista" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("oklada-miesiecznika-programista.php" instead of "programista-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected53 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111953

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected