10% pixnet

Code Review | PIXNET Plugin

WordPress plugin PIXNET Plugin scored10%from 54 tests.

About plugin

  • Plugin page: pixnet
  • Plugin version: 2.9.10
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: May 10, 2018
  • Latest release: Nov 23, 2022
  • Number of updates: 55
  • Update frequency: every 30.2 days
  • Top authors: daniel1088 (81.82%)jnlinn1218 (16.36%)henryhuhu (5.45%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,608 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/pixnet/pixnet_plugin.php+227
    file_get_contents(/tmp/pixnet-b984edcdfe562d3f512e5f50c1f1a1ed-personal-rank-cache.txt): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.53ms] Passed 4 tests

A check of server-side resources used by PIXNET Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.57 ▼30.91
Dashboard /wp-admin2.05 ▼1.265.62 ▼40.44
Posts /wp-admin/edit.php2.05 ▼1.316.51 ▼38.72
Add New Post /wp-admin/post-new.php2.05 ▼3.845.77 ▼96.06
Media Library /wp-admin/upload.php2.05 ▼1.185.63 ▼28.45

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

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

Browser metrics Passed 4 tests

Checking browser requirements for PIXNET Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,929 ▲16813.57 ▼0.8412.26 ▲10.5538.06 ▼3.88
Dashboard /wp-admin2,210 ▲295.58 ▼0.0480.04 ▼20.6141.75 ▼0.20
Posts /wp-admin/edit.php2,118 ▲181.98 ▲0.0232.13 ▼3.5337.59 ▲1.72
Add New Post /wp-admin/post-new.php1,551 ▲2520.97 ▼2.38550.05 ▼127.5356.84 ▲7.15
Media Library /wp-admin/upload.php1,421 ▲214.25 ▲0.0790.77 ▼22.5140.55 ▼7.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/pixnet/pixnet_plugin.php+227
    file_get_contents(/tmp/pixnet-b984edcdfe562d3f512e5f50c1f1a1ed-personal-rank-cache.txt): failed to open stream: No such file or directory
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • google_verify
    • widget_side_sticker_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pixnet/resource/view/menu.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pixnet/libs/widget_sticker.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pixnet/libs/widget_ksblogger.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pixnet/libs/widget_mamacakes.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pixnet/libs/widget_medal.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pixnet/pixnet_plugin.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: website assistant, page view

pixnet/pixnet_plugin.php 92% from 13 tests

"PIXNET Plugin" version 2.9.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pixnet.php" instead of "pixnet_plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin603 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP610614515
JavaScript25053
CSS18035

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity11.00
▷ Minimum class complexity3.00
▷ Maximum class complexity41.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin