84% pikiz

Code Review | Pikiz

WordPress plugin Pikiz scored 84% from 54 tests.

About plugin

  • Plugin page: pikiz
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6
  • WordPress version: 6.3.1
  • First release: Nov 22, 2015
  • Latest release: Aug 23, 2016
  • Number of updates: 17
  • Update frequency: every 16.9 days
  • Top authors: getpikiz (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active / 2,387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Pikiz
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0438.22 ▼1.71
Dashboard /wp-admin3.35 ▲0.0545.56 ▲3.04
Posts /wp-admin/edit.php3.40 ▲0.0447.97 ▲3.22
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.88 ▼3.46
Media Library /wp-admin/upload.php3.27 ▲0.0434.53 ▼0.85
Pikiz /wp-admin/options-general.php?page=pikiz3.2431.17

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Pikiz: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.15 ▼1.221.80 ▲0.2444.21 ▲2.76
Dashboard /wp-admin2,220 ▲285.88 ▲0.94108.67 ▼5.7040.30 ▼0.28
Posts /wp-admin/edit.php2,103 ▲142.03 ▼0.0239.81 ▲4.1735.79 ▲5.23
Add New Post /wp-admin/post-new.php1,537 ▲2317.80 ▲0.36697.41 ▲43.4159.04 ▲3.11
Media Library /wp-admin/upload.php1,418 ▲304.43 ▲0.19109.09 ▲14.7846.60 ▲3.24
Pikiz /wp-admin/options-general.php?page=pikiz8762.0725.5226.97

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pikiz/pikiz.php:15

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
Please take inspiration from this readme.txt

pikiz/pikiz.php Passed 13 tests

The entry point to "Pikiz" version 0.2 is a PHP file that has certain tags in its header comment area
36 characters long description:
Quickly design beautiful blog images

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,093 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP223862,2741,532
JavaScript4560368
PO File1363696
CSS115071
Markdown112026

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity1.61
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes114
▷ Abstract classes00.00%
▷ Concrete classes114100.00%
▷ Final classes00.00%
Methods168
▷ Static methods2716.07%
▷ Public methods168100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/white.png1.44KB0.99KB▼ 31.66%
images/icon.png1.19KB0.70KB▼ 41.05%
images/default.png1.40KB0.92KB▼ 34.19%